vector handling bugfix

This commit is contained in:
Kai Philipp
2019-09-09 22:45:54 +02:00
parent 7cc45e85d3
commit 5fe59ac751
+3 -1
View File
@@ -443,7 +443,9 @@ SessionData::IsPlayerAllowedToJoinLimitRank()
unsigned long num = (unsigned long)SERVER_ALLOWED_RANKING_GAMES_PER_MINUTES;
unsigned long count = 0;
for(std::vector<unsigned long>::iterator timeStamp = m_lastGames.begin(); timeStamp != m_lastGames.end(); ++timeStamp) {
auto timeStamp = m_lastGames.begin();
while (timeStamp != m_lastGames.end())
{
if(timeStamp > then)
count++;
else