1.1 --- a/core/MenuManager.cpp Tue Jun 05 16:44:19 2007 +0000
1.2 +++ b/core/MenuManager.cpp Tue Jun 05 17:21:47 2007 +0000
1.3 @@ -96,6 +96,8 @@
1.4 void VoteMenuHandler::EndVoting()
1.5 {
1.6 unsigned int chosen = 0;
1.7 + size_t highest = 0;
1.8 + unsigned int dup_count = 0;
1.9
1.10 /* If we got zero votes, take a shortcut. */
1.11 if (m_NumVotes == 0)
1.12 @@ -110,9 +112,7 @@
1.13 * This is the max number of players.
1.14 */
1.15 unsigned int dup_array[256];
1.16 - unsigned int dup_count = 0;
1.17
1.18 - size_t highest = 0;
1.19 for (size_t i=1; i<m_Votes.size(); i++)
1.20 {
1.21 if (m_Votes[i] > m_Votes[highest])