From 33b2d04e2db44c880277e062a6329a11a84d7b00 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 18 Jun 2007 03:39:15 +0000 Subject: [PATCH] fixed a bug where menu handler used wrong variable for param2 bitmask in MenuVoteEnd --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40983 --- core/smn_menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/smn_menus.cpp b/core/smn_menus.cpp index 84ea5ad6..aad7164d 100644 --- a/core/smn_menus.cpp +++ b/core/smn_menus.cpp @@ -299,7 +299,7 @@ void CMenuHandler::OnMenuVoteEnd(IBaseMenu *menu, unsigned int winningVotes, unsigned int totalVotes) { - DoAction(menu, MenuAction_VoteEnd, item, (totalVotes << 16) | (totalVotes & 0xFFFF)); + DoAction(menu, MenuAction_VoteEnd, item, (totalVotes << 16) | (winningVotes & 0xFFFF)); } void CMenuHandler::OnMenuVoteCancel(IBaseMenu *menu)