Fix number of players counter breaking when entering as player 1 & then exiting

This commit is contained in:
Sally Coolatta 2021-12-28 08:54:23 -05:00
parent b1d36496b2
commit 3890c06a4d

View file

@ -2270,12 +2270,13 @@ boolean M_CharacterSelectHandler(INT32 choice)
} }
// Setup new numplayers // Setup new numplayers
setup_numplayers = 0;
for (i = 0; i < MAXSPLITSCREENPLAYERS; i++) for (i = 0; i < MAXSPLITSCREENPLAYERS; i++)
{ {
if (setup_player[i].mdepth == CSSTEP_NONE) if (setup_player[i].mdepth == CSSTEP_NONE)
break; break;
else
setup_numplayers = i+1; setup_numplayers = i+1;
} }
return true; return true;