From d488619ce3acf6daf82a9475fede535c02881bdf Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Mon, 9 Sep 2019 22:54:01 +0200 Subject: [PATCH] stupid unsigned removed --- src/net/common/sessiondata.cpp | 6 +++--- src/net/sessiondata.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/net/common/sessiondata.cpp b/src/net/common/sessiondata.cpp index 30609c33..a8114682 100644 --- a/src/net/common/sessiondata.cpp +++ b/src/net/common/sessiondata.cpp @@ -404,14 +404,14 @@ SessionData::GetPlayerData() } void -SessionData::SetPlayerLastGames(std::vector lastGames) +SessionData::SetPlayerLastGames(std::vector lastGames) { boost::mutex::scoped_lock lock(m_dataMutex); m_lastGames = lastGames; } void -SessionData::AddPlayerLastGame(unsigned long lastGame) +SessionData::AddPlayerLastGame(long lastGame) { boost::mutex::scoped_lock lock(m_dataMutex); @@ -420,7 +420,7 @@ SessionData::AddPlayerLastGame(unsigned long lastGame) // @TODO: remove overdued entries } -std::vector +std::vector SessionData::GetPlayerLastGames() { boost::mutex::scoped_lock lock(m_dataMutex); diff --git a/src/net/sessiondata.h b/src/net/sessiondata.h index 4f4d2e4a..f2bc96c6 100644 --- a/src/net/sessiondata.h +++ b/src/net/sessiondata.h @@ -127,9 +127,9 @@ public: void SetPlayerData(boost::shared_ptr player); boost::shared_ptr GetPlayerData(); - void AddPlayerLastGame(unsigned long lastGames); - void SetPlayerLastGames(std::vector lastGames); - std::vector GetPlayerLastGames(); + void AddPlayerLastGame(long lastGames); + void SetPlayerLastGames(std::vector lastGames); + std::vector GetPlayerLastGames(); bool IsPlayerAllowedToJoinLimitRank(); std::string GetRemoteIPAddressFromSocket() const; @@ -165,7 +165,7 @@ private: std::string m_password; boost::shared_ptr m_playerData; - std::vector m_lastGames; + std::vector m_lastGames; mutable boost::mutex m_dataMutex; };