From ef8ef35d28daa3ea7dd542078ac9c0d3f7a9a5e2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Aug 2017 22:51:23 +0300 Subject: Move some variables to better scope. --- src/net/ea/npcrecv.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net/ea') diff --git a/src/net/ea/npcrecv.cpp b/src/net/ea/npcrecv.cpp index 16060d6fa..098f07e79 100644 --- a/src/net/ea/npcrecv.cpp +++ b/src/net/ea/npcrecv.cpp @@ -236,9 +236,11 @@ void NpcRecv::processChangeTitle(Net::MessageIn &msg) msg.readInt16("len"); npcHandler->getNpc(msg, NpcAction::Other); mRequestLang = false; - const std::string str = msg.readString(-1, "title"); if (mDialog != nullptr) + { + const std::string str = msg.readString(-1, "title"); mDialog->setCaption(str); + } } } // namespace Ea -- cgit v1.2.3-70-g09d2