Skip to content

Commit

Permalink
CallVote client check
Browse files Browse the repository at this point in the history
Rare error where if a client is forced to re-call the vote as a map changes or the client disconnects
  • Loading branch information
iBoonie committed Sep 23, 2022
1 parent 9793001 commit e05596d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/nativevotes.sp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public Action Command_CallVote(int client, const char[] command, int argc)
return Plugin_Continue;
}

if (Internal_IsVoteInProgress() || Game_IsVoteInProgress())
if (Internal_IsVoteInProgress() || Game_IsVoteInProgress() || !IsClientInGame(client))
{
return Plugin_Handled;
}
Expand Down

0 comments on commit e05596d

Please sign in to comment.