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:
parent
4f6a434e85
commit
018b3ada7e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue