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
This commit is contained in:
David Anderson 2007-06-18 03:39:15 +00:00
parent c8f2d56dd3
commit 33b2d04e2d

View File

@ -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)