diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-17 13:11:39 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-17 13:11:39 -0700 |
commit | 1a7a8714ce420e65cf34f65454682d202e9ba284 (patch) | |
tree | 838d70226a805b1d36c1cbdc7f578edd9278edfe | |
parent | a40c16cac5356d18aa6fc3f4549ece152713cfe2 (diff) | |
download | mana-1a7a8714ce420e65cf34f65454682d202e9ba284.tar.gz mana-1a7a8714ce420e65cf34f65454682d202e9ba284.tar.bz2 mana-1a7a8714ce420e65cf34f65454682d202e9ba284.tar.xz mana-1a7a8714ce420e65cf34f65454682d202e9ba284.zip |
Fixed closing for NPC dialogs.
Signed-off-by: Ira Rice <irarice@gmail.com>
-rw-r--r-- | src/net/npchandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/npchandler.cpp b/src/net/npchandler.cpp index 8ca529c8..8425a215 100644 --- a/src/net/npchandler.cpp +++ b/src/net/npchandler.cpp @@ -79,7 +79,8 @@ void NPCHandler::handleMessage(MessageIn *msg) case SMSG_NPC_CLOSE: id = msg->readInt32(); - current_npc = dynamic_cast<NPC*>(beingManager->findBeing(id)); + if (current_npc == dynamic_cast<NPC*>(beingManager->findBeing(id))) + current_npc = NULL; break; case SMSG_NPC_NEXT: |