Merge pull request #1129 from mfrancis95/master
Apply @fabiangreffrath's patch to fix a memory error in Hexen
This commit is contained in:
commit
2880809db9
1 changed files with 1 additions and 6 deletions
|
|
@ -195,13 +195,8 @@ boolean SC_GetString(void)
|
|||
}
|
||||
while (foundToken == false)
|
||||
{
|
||||
while (*ScriptPtr <= 32)
|
||||
while (ScriptPtr < ScriptEndPtr && *ScriptPtr <= 32)
|
||||
{
|
||||
if (ScriptPtr >= ScriptEndPtr)
|
||||
{
|
||||
sc_End = true;
|
||||
return false;
|
||||
}
|
||||
if (*ScriptPtr++ == '\n')
|
||||
{
|
||||
sc_Line++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue