mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
fix script error line reporting on the 1st script line
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user