diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-11 01:39:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-11 01:39:23 +0300 |
commit | c83d3a41abcae15b1198b692502bc8b9879a10ab (patch) | |
tree | 9f166306021d70b0bbab46c3d9f21a1408a2b72c /src/net/eathena/chathandler.cpp | |
parent | f7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81 (diff) | |
download | mv-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.cpp | 2 |
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); |