Fix picked map anger vote looking for invalid player

It was looking to see if the local player picked the map
to play the cheer sound effect.
This commit is contained in:
James R 2025-05-19 23:21:33 -07:00
parent f2c92efa67
commit 628aab60c3

View file

@ -1050,7 +1050,7 @@ static void Y_VoteStops(SINT8 pick, SINT8 level)
{
Y_FinalizeVote(level);
if (netgame && P_IsPartyPlayer(&players[pick]))
if (netgame && pick < MAXPLAYERS && P_IsPartyPlayer(&players[pick]))
{
S_StartSound(NULL, sfx_yeeeah); // yeeeah!
}