diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-06 14:17:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-06 14:17:45 +0300 |
commit | f90aae8a2b49b87bd6bf66055a404914df3a0d05 (patch) | |
tree | 1fa12cb2a099193eda84384da62825a5a1e6770e /src/net/eathena/npcrecv.cpp | |
parent | 816825da9c92a4243a16223a7737175623516a1f (diff) | |
download | manaverse-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.cpp | 3 |
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) |