diff --git a/src/k_vote.c b/src/k_vote.c index 4080a4d9c..48c83db16 100644 --- a/src/k_vote.c +++ b/src/k_vote.c @@ -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! }