1
0
Fork 0
forked from fte/fteqw

Off by one error that was causing crashes on certain configs.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@48 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-08-26 10:17:21 +00:00
parent 4f6a434e85
commit 018b3ada7e

View file

@ -330,7 +330,7 @@ void Cbuf_ExecuteLevel (int level)
// for next frame // for next frame
break; break;
} }
// find a \n or ; line break // find a \n or ; line break
text = (char *)cmd_text[level].buf.data; text = (char *)cmd_text[level].buf.data;
@ -377,7 +377,7 @@ void Cbuf_Execute (void)
{ {
int level; int level;
for (level = 0; level <= sizeof(cmd_text)/sizeof(cmd_text[0]); level++) for (level = 0; level < sizeof(cmd_text)/sizeof(cmd_text[0]); level++)
Cbuf_ExecuteLevel(level); Cbuf_ExecuteLevel(level);
} }