From f82ea67c6720a9df65fe4223bd7f8a21f3b9966a Mon Sep 17 00:00:00 2001 From: "Tony J. White =" Date: Fri, 28 Mar 2008 03:26:59 +0000 Subject: [PATCH] * 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. --- code/botlib/l_script.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/code/botlib/l_script.c b/code/botlib/l_script.c index 3e43fda0..c92481c0 100644 --- a/code/botlib/l_script.c +++ b/code/botlib/l_script.c @@ -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