diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 2319ab799..4a7538784 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -532,7 +532,7 @@ int Networking::mainLoop() bsIn.IgnoreBytes((unsigned int) RakNet::RakNetGUID::size()); // Ignore GUID from received packet - if (Players::isPlayerExists(packet->guid)) + if (Players::doesPlayerExist(packet->guid)) update(packet, bsIn); else preInit(packet, bsIn); diff --git a/apps/openmw-mp/Player.cpp b/apps/openmw-mp/Player.cpp index fb94a6159..296496702 100644 --- a/apps/openmw-mp/Player.cpp +++ b/apps/openmw-mp/Player.cpp @@ -177,7 +177,7 @@ void Player::forEachLoaded(std::function func) } } -bool Players::isPlayerExists(RakNet::RakNetGUID guid) +bool Players::doesPlayerExist(RakNet::RakNetGUID guid) { return players.find(guid) != players.end(); } diff --git a/apps/openmw-mp/Player.hpp b/apps/openmw-mp/Player.hpp index 487719343..4681db43a 100644 --- a/apps/openmw-mp/Player.hpp +++ b/apps/openmw-mp/Player.hpp @@ -34,7 +34,7 @@ public: static Player *getPlayer(unsigned short id); static TPlayers *getPlayers(); static unsigned short getLastPlayerId(); - static bool isPlayerExists(RakNet::RakNetGUID guid); + static bool doesPlayerExist(RakNet::RakNetGUID guid); private: static TPlayers players;