Commit 9e775824 authored by Dino Bollinger's avatar Dino Bollinger

Duke3D: Fix out of bounds array accesses in newgamechoices code

parent 93f62bba
......@@ -5675,6 +5675,7 @@ static int parsedefinitions_game(scriptfile *pScript, int firstPass)
initprintf("Error: Maximum choices exceeded near line %s:%d\n",
pScript->filename, scriptfile_getlinum(pScript, choicePtr));
pScript->textptr = choiceEnd+1;
break;
}
MenuGameplayStemEntry & stem = g_MenuGameplayEntries[choiceID];
......@@ -5700,6 +5701,7 @@ static int parsedefinitions_game(scriptfile *pScript, int firstPass)
initprintf("Error: Maximum subchoices exceeded near line %s:%d\n",
pScript->filename, scriptfile_getlinum(pScript, subChoicePtr));
pScript->textptr = subChoiceEnd+1;
break;
}
MenuGameplayEntry & subentry = stem.subentries[subChoiceID];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment