diff options
| -rw-r--r-- | src/game/Chat.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index b261631385d..667ab814fba 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -1066,7 +1066,7 @@ int ChatHandler::ParseCommands(const char* text)      std::string fullcmd = text; -    if (m_session->GetSecurity() <= SEC_PLAYER && sWorld.getConfig(CONFIG_ALLOW_PLAYER_COMMANDS) == 0) +    if (m_session && m_session->GetSecurity() <= SEC_PLAYER && sWorld.getConfig(CONFIG_ALLOW_PLAYER_COMMANDS) == 0)  	 return 0;      if (m_session && !m_session->HandleOnPlayerChat(text))  | 
