Don't display empty profiles on player setup

This commit is contained in:
SinnamonLat 2022-02-19 21:49:08 +01:00
parent 8920ec8e6a
commit b9a494551e
2 changed files with 2 additions and 2 deletions

View file

@ -936,7 +936,7 @@ static void M_DrawCharSelectPreview(UINT8 num)
UINT8 i = 0;
INT16 px = x+12;
INT16 py = y+48 - p->profilen*12;
UINT8 maxp = MAXPROFILES+1;
UINT8 maxp = PR_GetNumProfiles();
for (i=0; i < maxp; i++)
{

View file

@ -2231,7 +2231,7 @@ static void M_SetupProfileGridPos(setup_player_t *p)
static boolean M_HandleCSelectProfile(setup_player_t *p, UINT8 num)
{
const UINT8 maxp = MAXPROFILES;
const UINT8 maxp = PR_GetNumProfiles() -1;
UINT8 i;
if (menucmd[num].dpad_ud > 0)