Don't do anything if you somehow have a negative follower in menus

This commit is contained in:
Latapostrophe 2020-06-10 23:21:25 +02:00
parent fbd10d0e6c
commit 9fec0562c9

View file

@ -9638,7 +9638,7 @@ static void M_DrawSetupMultiPlayerMenu(void)
static void M_GetFollowerState(void) static void M_GetFollowerState(void)
{ {
if (setupm_fakefollower == -1 || setupm_fakefollower > numfollowers-1) // yikes, there's none! if (setupm_fakefollower <= -1 || setupm_fakefollower > numfollowers-1) // yikes, there's none!
return; return;
// ^ we don't actually need to set anything since it won't be displayed anyway. // ^ we don't actually need to set anything since it won't be displayed anyway.