From c83d3a41abcae15b1198b692502bc8b9879a10ab Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 May 2015 01:39:23 +0300 Subject: Fix crash if close client with joined chat room. --- src/net/eathena/chathandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2