Apply @fabiangreffrath's patch to fix a memory error in Hexen
This commit is contained in:
parent
af80499016
commit
52c49e45fb
1 changed files with 5 additions and 5 deletions
|
|
@ -197,16 +197,16 @@ boolean SC_GetString(void)
|
|||
{
|
||||
while (*ScriptPtr <= 32)
|
||||
{
|
||||
if (ScriptPtr >= ScriptEndPtr)
|
||||
{
|
||||
sc_End = true;
|
||||
return false;
|
||||
}
|
||||
if (*ScriptPtr++ == '\n')
|
||||
{
|
||||
sc_Line++;
|
||||
sc_Crossed = true;
|
||||
}
|
||||
if (ScriptPtr >= ScriptEndPtr)
|
||||
{
|
||||
sc_End = true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (ScriptPtr >= ScriptEndPtr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue