mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-01 22:20:45 +00:00
a7660020b8
The `const char* filename` arg is passed from idProgram::CompileText(), where it's from idProgram::filename - and that filename can get modified in idCompiler::NextToken() when it calls gameLocal.program.GetFilenum() and if the idStr grows and reallocates for that modification, the filename pointer becomes invalid. So store `filename` in an idStr and use that when logging the compile time. |
||
---|---|---|
.. | ||
Script_Compiler.cpp | ||
Script_Compiler.h | ||
Script_Interpreter.cpp | ||
Script_Interpreter.h | ||
Script_Program.cpp | ||
Script_Program.h | ||
Script_Thread.cpp | ||
Script_Thread.h |