Merge branch 'jartha/fix-map-anger-crash' into 'master'

Fix picked map anger vote looking for invalid player

Closes #1521

See merge request kart-krew-dev/ring-racers-internal!2556
This commit is contained in:
Oni VelocitOni 2025-05-20 17:51:38 +00:00
commit fafda8df44

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!
}