F_AdvanceToNextPage adjustment

This commit is contained in:
mazmazz 2018-11-13 01:38:20 -05:00
parent 75c4a96e69
commit 6f435ee410

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)