diff --git a/Core/GameEngine/Source/GameNetwork/LANAPIhandlers.cpp b/Core/GameEngine/Source/GameNetwork/LANAPIhandlers.cpp index 7f88b835f8..2a9b3b6cfb 100644 --- a/Core/GameEngine/Source/GameNetwork/LANAPIhandlers.cpp +++ b/Core/GameEngine/Source/GameNetwork/LANAPIhandlers.cpp @@ -595,6 +595,11 @@ void LANAPI::handleHasMap( LANMessage *msg, UnsignedInt senderIP ) { if (!m_inLobby && m_currentGame) { + if (!TheGameState) + { + return; + } + CRC mapNameCRC; // mapNameCRC.computeCRC(m_currentGame->getMap().str(), m_currentGame->getMap().getLength()); AsciiString portableMapName = TheGameState->realMapPathToPortableMapPath(m_currentGame->getMap());