summaryrefslogtreecommitdiff
path: root/src/net/npchandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/npchandler.cpp')
-rw-r--r--src/net/npchandler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/npchandler.cpp b/src/net/npchandler.cpp
index 8425a215..8ca529c8 100644
--- a/src/net/npchandler.cpp
+++ b/src/net/npchandler.cpp
@@ -79,8 +79,7 @@ void NPCHandler::handleMessage(MessageIn *msg)
case SMSG_NPC_CLOSE:
id = msg->readInt32();
- if (current_npc == dynamic_cast<NPC*>(beingManager->findBeing(id)))
- current_npc = NULL;
+ current_npc = dynamic_cast<NPC*>(beingManager->findBeing(id));
break;
case SMSG_NPC_NEXT: