diff --git a/src/net/common/sessiondata.cpp b/src/net/common/sessiondata.cpp index 63e6cbb6..f5f98744 100644 --- a/src/net/common/sessiondata.cpp +++ b/src/net/common/sessiondata.cpp @@ -402,7 +402,7 @@ SessionData::GetPlayerData() } void -SessionData::SetPlayerLastGames(std::array lastGames) +SessionData::SetPlayerLastGames(std::vector lastGames) { boost::mutex::scoped_lock lock(m_dataMutex); m_lastGames = lastGames; @@ -418,7 +418,7 @@ SessionData::AddPlayerLastGame(unsigned long lastGame) // @TODO: remove overdued entries } -std::array +std::vector SessionData::GetPlayerLastGames() { boost::mutex::scoped_lock lock(m_dataMutex); diff --git a/src/net/sessiondata.h b/src/net/sessiondata.h index 73b37c56..4f4d2e4a 100644 --- a/src/net/sessiondata.h +++ b/src/net/sessiondata.h @@ -40,7 +40,7 @@ typedef unsigned SessionId; #include #include #include -#include +#include #include #include @@ -128,8 +128,8 @@ public: boost::shared_ptr GetPlayerData(); void AddPlayerLastGame(unsigned long lastGames); - void SetPlayerLastGames(std::array lastGames); - std::array GetPlayerLastGames(); + 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::array m_lastGames; + std::vector m_lastGames; mutable boost::mutex m_dataMutex; };