Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion addons/sourcemod/scripting/nativevotes/game.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -3553,4 +3555,4 @@ stock bool Game_IsVoteTypeYesNo(NativeVotesType voteType)
}

return true;
}
}