diff --git a/apps/openmw-mp/Player.cpp b/apps/openmw-mp/Player.cpp index ec7d15ae8..d581813a3 100644 --- a/apps/openmw-mp/Player.cpp +++ b/apps/openmw-mp/Player.cpp @@ -52,6 +52,8 @@ void Players::newPlayer(RakNet::RakNetGUID guid) Player *Players::getPlayer(RakNet::RakNetGUID guid) { + if(players.count(guid) == 0) + return nullptr; return players[guid]; }