F_AdvanceToNextPage adjustment

This commit is contained in:
mazmazz 2018-11-13 01:38:20 -05:00
parent 422692ed03
commit 5270743a42

View file

@ -2156,7 +2156,7 @@ static void F_AdvanceToNextPage(void)
// determine next page
if (nextpage != INT32_MAX)
{
if (nextprompt != INT32_MAX)
if (cutnum != INT32_MAX)
{
scenenum = nextpage;
if (scenenum >= MAX_PAGES || scenenum > textprompts[cutnum]->numpages-1)