mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
* remove COM_Compress() call on script buffer loaded into memory. I assume
this was added in order to save cycles if a script is loaded and then parsed multiple times, but it caused line numbers to be reported incorrectly for parse errors. If a script is loaded into memory and parsed multiple times then the script itself should be optimized instead of doing it at runtime. Also, there was a possibility of segfault due to where this was called.
This commit is contained in:
parent
1d072dfdb5
commit
f82ea67c67
1 changed files with 0 additions and 2 deletions
|
@ -1363,8 +1363,6 @@ script_t *LoadScriptFile(const char *filename)
|
|||
} //end if
|
||||
fclose(fp);
|
||||
#endif
|
||||
//
|
||||
script->length = COM_Compress(script->buffer);
|
||||
|
||||
return script;
|
||||
} //end of the function LoadScriptFile
|
||||
|
|
Loading…
Reference in a new issue