fix script error line reporting on the 1st script line

This commit is contained in:
Garux
2025-11-01 10:06:19 +05:00
parent 198a915665
commit 43e2c423de
+2
View File
@@ -76,6 +76,7 @@ static bool AddScriptToStack( const char *filename, int index, bool verbose ){
}
scriptstack.emplace_back( filename, std::move( buffer ) );
scriptline = 1;
return true;
}
else
@@ -112,6 +113,7 @@ void ParseFromMemory( const char *buffer, size_t size ){
MemBuffer bu( size );
memcpy( bu.data(), buffer, size );
scriptstack.emplace_back( "memory buffer", std::move( bu ) );
scriptline = 1;
}