start CON code at script[3] instead of script[1]. The 'move' command permits

the constants 0 and 1, and moveptrs may reference the script up to index 2
then (though I'm not sure whether the code is reachable with moveofs either
0 or 1), so make sure it's nulled instead of whatever happened to compile at
the first two positions.  Move 1 is only used once in the original cons,
when frozen and being shattered.

git-svn-id: https://svn.eduke32.com/eduke32@2211 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-12-25 15:35:06 +00:00
parent 5ef480ad7a
commit 0bf329e70d

View file

@ -5781,7 +5781,7 @@ void C_Compile(const char *filenam)
// initprintf("script: %d, bitptr: %d\n",script,bitptr);
g_numLabels = g_numDefaultLabels = 0;
g_scriptPtr = script+1;
g_scriptPtr = script+3; // move permits constants 0 and 1; moveptr[1] would be script[2] (reachable?)
g_numCompilerWarnings = 0;
g_numCompilerErrors = 0;
g_lineNumber = 1;