From 02e8c81974acda52e1aeb766a21186405f9bcb03 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Mon, 9 Sep 2019 20:34:58 +0200 Subject: [PATCH] array to vector now --- src/net/common/sessiondata.cpp | 4 ++-- src/net/sessiondata.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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; };