mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 15:40:58 +00:00
Crash fix
git-svn-id: https://svn.eduke32.com/eduke32@6493 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c52e003e2a
commit
7bdd0e1361
1 changed files with 9 additions and 9 deletions
|
@ -6444,17 +6444,17 @@ void C_Compile(const char *fileName)
|
|||
|
||||
for (int i = 0; i < MAXEVENTS; ++i)
|
||||
{
|
||||
if (!apScriptGameEventEnd[i])
|
||||
continue;
|
||||
|
||||
intptr_t *eventEnd = apScript + apScriptGameEventEnd[i];
|
||||
if (eventEnd)
|
||||
// C_FillEventBreakStackWithEndEvent
|
||||
intptr_t *breakPtr = (intptr_t*)*(eventEnd + 2);
|
||||
while (breakPtr)
|
||||
{
|
||||
// C_FillEventBreakStackWithEndEvent
|
||||
intptr_t *breakPtr = (intptr_t*)*(eventEnd + 2);
|
||||
while (breakPtr)
|
||||
{
|
||||
breakPtr = apScript + (intptr_t)breakPtr;
|
||||
*(breakPtr-2) = CON_ENDEVENT | (g_lineNumber << 12);
|
||||
breakPtr = (intptr_t*)*breakPtr;
|
||||
}
|
||||
breakPtr = apScript + (intptr_t)breakPtr;
|
||||
*(breakPtr-2) = CON_ENDEVENT | (g_lineNumber << 12);
|
||||
breakPtr = (intptr_t*)*breakPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue