From f90aae8a2b49b87bd6bf66055a404914df3a0d05 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Feb 2016 14:17:45 +0300 Subject: Add missing check. --- src/net/eathena/npcrecv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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(msg.readUInt8("type")); - cutInWindow->show(image, cutin); + if (cutInWindow) + cutInWindow->show(image, cutin); } void NpcRecv::processNpcViewPoint(Net::MessageIn &msg) -- cgit v1.2.3-60-g2f50