diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-22 17:35:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-22 20:00:36 +0300 |
commit | 6fa671cdc65cd3ad507eca7dbee604418e449aa7 (patch) | |
tree | 9090841ed74fbb80427310cd96118759267b2941 /src/net/eathena/chathandler.cpp | |
parent | 1b853996cb2616e181e8822f74d79bd258c97c14 (diff) | |
download | plus-6fa671cdc65cd3ad507eca7dbee604418e449aa7.tar.gz plus-6fa671cdc65cd3ad507eca7dbee604418e449aa7.tar.bz2 plus-6fa671cdc65cd3ad507eca7dbee604418e449aa7.tar.xz plus-6fa671cdc65cd3ad507eca7dbee604418e449aa7.zip |
Fix code style.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 872afe05e..22db67357 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -698,7 +698,10 @@ void ChatHandler::processChatRoomJoinAck(Net::MessageIn &msg) ChatObject *oldChat = ChatObject::findById(id); - PlayerInfo::setRoomName(oldChat->title); + if (oldChat) + PlayerInfo::setRoomName(oldChat->title); + else + PlayerInfo::setRoomName(std::string()); chatWindow->joinRoom(true); ChatObject *const obj = new ChatObject; if (oldChat) |