vector handling bugfix

This commit is contained in:
Kai Philipp
2019-09-09 22:41:57 +02:00
parent 2effd5219a
commit 7cc45e85d3
+2 -2
View File
@@ -442,8 +442,8 @@ SessionData::IsPlayerAllowedToJoinLimitRank()
unsigned long num = (unsigned long)SERVER_ALLOWED_RANKING_GAMES_PER_MINUTES;
int count = 0;
for(std::vector<T>::iterator timeStamp = m_lastGames.begin(); timeStamp != m_lastGames.end(); ++timeStamp) {
unsigned long count = 0;
for(std::vector<unsigned long>::iterator timeStamp = m_lastGames.begin(); timeStamp != m_lastGames.end(); ++timeStamp) {
if(timeStamp > then)
count++;
else