Revert and fix filename change in idProgram::CompileText() for savefile compatibility

This commit is contained in:
Stephen Saunders 2023-12-08 01:35:28 -05:00 committed by Robert Beckebans
parent e0fe1b8bed
commit aeb3e21bb9

View file

@ -2144,7 +2144,7 @@ bool idProgram::CompileText( const char* source, const char* text, bool console
try
#endif
{
compiler.CompileFile( text, source, console );
compiler.CompileFile( text, ospath.c_str(), console );
// check to make sure all functions prototyped have code
for( i = 0; i < varDefs.Num(); i++ )