mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-31 04:02:37 +00:00
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:
commit
fafda8df44
1 changed files with 1 additions and 1 deletions
|
|
@ -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!
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue