From f9290edc71ad83023cccd63323f7be758e3e2956 Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Mon, 28 Dec 2009 06:53:39 +0100 Subject: Fixed possible crash, by toshik --HG-- branch : trunk --- src/game/Chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) -- cgit v1.2.3