summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-11 01:39:23 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-11 01:39:23 +0300
commitc83d3a41abcae15b1198b692502bc8b9879a10ab (patch)
tree9f166306021d70b0bbab46c3d9f21a1408a2b72c
parentf7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81 (diff)
downloadmanaverse-c83d3a41abcae15b1198b692502bc8b9879a10ab.tar.gz
manaverse-c83d3a41abcae15b1198b692502bc8b9879a10ab.tar.bz2
manaverse-c83d3a41abcae15b1198b692502bc8b9879a10ab.tar.xz
manaverse-c83d3a41abcae15b1198b692502bc8b9879a10ab.zip
Fix crash if close client with joined chat room.
-rw-r--r--src/net/eathena/chathandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index b36bfa2e4..07ed7e390 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -730,7 +730,7 @@ void ChatHandler::processChatRoomLeave(Net::MessageIn &msg)
UNIMPLIMENTEDPACKET;
break;
}
- if (name == localPlayer->getName())
+ if (localPlayer && name == localPlayer->getName())
{
if (chatWindow)
chatWindow->joinRoom(false);