summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/manaserv/npchandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/manaserv/npchandler.cpp b/src/net/manaserv/npchandler.cpp
index 5bacb90b..258c72c0 100644
--- a/src/net/manaserv/npchandler.cpp
+++ b/src/net/manaserv/npchandler.cpp
@@ -68,6 +68,9 @@ void NpcHandler::handleMessage(Net::MessageIn &msg)
if (diag == mNpcDialogs.end())
{
+ if (msg.getId() == GPMSG_NPC_ERROR || msg.getId() == GPMSG_NPC_CLOSE)
+ return; // Dialog is pointless in these cases
+
dialog = new NpcDialog(npcId);
Wrapper wrap;
wrap.dialog = dialog;