From a54de1f063f989230ab7ff4e105b520bd150057f Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Sun, 15 Sep 2019 19:44:57 +0200 Subject: [PATCH] bugfix --- src/playerdata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/playerdata.cpp b/src/playerdata.cpp index 52aed7ca..3434c8f8 100644 --- a/src/playerdata.cpp +++ b/src/playerdata.cpp @@ -282,7 +282,8 @@ LOG_ERROR("checking IsPlayerAllowedToJoinCreateLimitRank() "); for(std::vector::iterator timeStamp = m_last_games.begin(); timeStamp != m_last_games.end(); ++timeStamp) { LOG_ERROR("timeStamp " << *timeStamp); time_t ts = (time_t)*timeStamp; - if(ts > then){ + LOG_ERROR("comparing ts " << (long)ts << " with " << then); + if((long)ts > then){ LOG_ERROR("counting timeStamp in time " << ctime(&ts)); count++; }else{