diff --git a/addons/sourcemod/scripting/nativevotes/game.sp b/addons/sourcemod/scripting/nativevotes/game.sp index 0f63128..e132bbc 100644 --- a/addons/sourcemod/scripting/nativevotes/game.sp +++ b/addons/sourcemod/scripting/nativevotes/game.sp @@ -2368,6 +2368,8 @@ static void TF2CSGO_SendOptionsToClient(NativeVote vote, int client) } optionsEvent.SetInt("count", itemCount); optionsEvent.FireToClient(client); + // FireToClient does not close the handle, so we call Cancel() to do that for us. + optionsEvent.Cancel(); } static void CSGO_VotePass(const char[] translation, const char[] details, int team, int client=0) @@ -3553,4 +3555,4 @@ stock bool Game_IsVoteTypeYesNo(NativeVotesType voteType) } return true; -} \ No newline at end of file +}