diff --git a/src/net/common/sessiondata.cpp b/src/net/common/sessiondata.cpp index 31cafa2c..2ca9ebab 100644 --- a/src/net/common/sessiondata.cpp +++ b/src/net/common/sessiondata.cpp @@ -442,8 +442,8 @@ SessionData::IsPlayerAllowedToJoinLimitRank() unsigned long num = (unsigned long)SERVER_ALLOWED_RANKING_GAMES_PER_MINUTES; - int count = 0; - for(std::vector::iterator timeStamp = m_lastGames.begin(); timeStamp != m_lastGames.end(); ++timeStamp) { + unsigned long count = 0; + for(std::vector::iterator timeStamp = m_lastGames.begin(); timeStamp != m_lastGames.end(); ++timeStamp) { if(timeStamp > then) count++; else