diff --git a/src/net/common/sessiondata.cpp b/src/net/common/sessiondata.cpp index de8e250a..df551f01 100644 --- a/src/net/common/sessiondata.cpp +++ b/src/net/common/sessiondata.cpp @@ -402,13 +402,13 @@ SessionData::GetPlayerData() } void -SessionData::SetPlayerLastGames(std::array lastGames) +SessionData::SetPlayerLastGames(std::array lastGames) { boost::mutex::scoped_lock lock(m_dataMutex); m_lastGames = player; } -std::array +std::array SessionData::GetPlayerLastGames() { boost::mutex::scoped_lock lock(m_dataMutex); diff --git a/src/net/common/sessionmanager.cpp b/src/net/common/sessionmanager.cpp index b674ab79..276cd48d 100644 --- a/src/net/common/sessionmanager.cpp +++ b/src/net/common/sessionmanager.cpp @@ -35,6 +35,7 @@ #include #include +#include using namespace std; diff --git a/src/net/sessiondata.h b/src/net/sessiondata.h index 2c1b686f..3b4c2c6b 100644 --- a/src/net/sessiondata.h +++ b/src/net/sessiondata.h @@ -127,8 +127,8 @@ public: void SetPlayerData(boost::shared_ptr player); boost::shared_ptr GetPlayerData(); - void SetPlayerLastGames(std::array lastGames); - std::array GetPlayerLastGames(); + void SetPlayerLastGames(std::array lastGames); + std::array GetPlayerLastGames(); std::string GetRemoteIPAddressFromSocket() const; @@ -163,7 +163,7 @@ private: std::string m_password; boost::shared_ptr m_playerData; - std::array m_lastGames; + std::array m_lastGames; mutable boost::mutex m_dataMutex; };