Fix online players being unable to vote (oops)

This commit is contained in:
NepDisk 2025-12-12 22:46:18 -05:00
parent f9c0e7fb9c
commit 57d9243e08

View file

@ -1987,7 +1987,7 @@ void Y_VoteTicker(void)
if (voteclient.playerinfo[i].delay)
voteclient.playerinfo[i].delay--;
if (Y_PlayerIDCanVote(i)
if (Y_PlayerIDCanVote(p)
&& !voteclient.playerinfo[i].delay
&& g_pickedVote == VOTE_NOT_PICKED && g_votes[p] == VOTE_NOT_PICKED)
{