summaryrefslogtreecommitdiff
path: root/src/net/eathena/npcrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-06 14:17:45 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-06 14:17:45 +0300
commitf90aae8a2b49b87bd6bf66055a404914df3a0d05 (patch)
tree1fa12cb2a099193eda84384da62825a5a1e6770e /src/net/eathena/npcrecv.cpp
parent816825da9c92a4243a16223a7737175623516a1f (diff)
downloadManaVerse-f90aae8a2b49b87bd6bf66055a404914df3a0d05.tar.gz
ManaVerse-f90aae8a2b49b87bd6bf66055a404914df3a0d05.tar.bz2
ManaVerse-f90aae8a2b49b87bd6bf66055a404914df3a0d05.tar.xz
ManaVerse-f90aae8a2b49b87bd6bf66055a404914df3a0d05.zip
Add missing check.
Diffstat (limited to 'src/net/eathena/npcrecv.cpp')
-rw-r--r--src/net/eathena/npcrecv.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/npcrecv.cpp b/src/net/eathena/npcrecv.cpp
index b92a0f913..4088e8c4e 100644
--- a/src/net/eathena/npcrecv.cpp
+++ b/src/net/eathena/npcrecv.cpp
@@ -45,7 +45,8 @@ void NpcRecv::processNpcCutin(Net::MessageIn &msg)
Ea::NpcRecv::mRequestLang = false;
const std::string image = msg.readString(64, "image name");
const CutInT cutin = static_cast<CutInT>(msg.readUInt8("type"));
- cutInWindow->show(image, cutin);
+ if (cutInWindow)
+ cutInWindow->show(image, cutin);
}
void NpcRecv::processNpcViewPoint(Net::MessageIn &msg)