summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
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 /src/net/eathena/chathandler.cpp
parentf7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81 (diff)
downloadmv-c83d3a41abcae15b1198b692502bc8b9879a10ab.tar.gz
mv-c83d3a41abcae15b1198b692502bc8b9879a10ab.tar.bz2
mv-c83d3a41abcae15b1198b692502bc8b9879a10ab.tar.xz
mv-c83d3a41abcae15b1198b692502bc8b9879a10ab.zip
Fix crash if close client with joined chat room.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-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);