Make sure to reset setup_player when backing out to not interfere with profile display

This commit is contained in:
SinnamonLat 2022-02-19 13:43:21 +01:00
parent 2e4a58095a
commit debc93ff5c

View file

@ -2142,6 +2142,7 @@ static boolean M_HandlePressStart(setup_player_t *p, UINT8 num)
if (num == 0)
{
// We're done here.
memset(setup_player, 0, sizeof(setup_player)); // Reset this to avoid funky things with profile display.
M_GoBack(0);
return true;
}
@ -2264,6 +2265,7 @@ static boolean M_HandleCharacterGrid(setup_player_t *p, UINT8 num)
// we don't want to go to the input detection menu.
if (optionsmenu.profile)
{
memset(setup_player, 0, sizeof(setup_player)); // Reset setup_player otherwise it does some VERY funky things.
M_GoBack(0);
return true;
}