diff -r f4dcb8a85af2 -r 2ed832eea89d core/MenuManager.cpp --- a/core/MenuManager.cpp Sat Jun 16 22:04:46 2007 +0000 +++ b/core/MenuManager.cpp Sat Jun 16 22:10:22 2007 +0000 @@ -111,6 +111,7 @@ unsigned int chosen = 0; unsigned int highest = 0; unsigned int dup_count = 0; + unsigned int total = m_Votes.size() ? m_Votes[0] : 0; /* If we got zero votes, take a shortcut. */ if (m_NumVotes == 0) @@ -126,7 +127,6 @@ */ unsigned int dup_array[256]; - unsigned int total = m_Votes[0]; for (size_t i=1; i m_Votes[highest])