From 7a65eb17a322cb22e7940504797844114fb77d79 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 25 Feb 2009 07:54:38 -0700 Subject: Fix some problems with deleting NPCs early --- src/net/npchandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/npchandler.cpp b/src/net/npchandler.cpp index 5ae2ac2e..ae521bd5 100644 --- a/src/net/npchandler.cpp +++ b/src/net/npchandler.cpp @@ -94,7 +94,7 @@ void NPCHandler::handleMessage(MessageIn *msg) // If we're talking to that NPC, show the next button if (temporaryNPC == current_npc) npcTextDialog->showNextButton(); - else + else if (temporaryNPC) // Otherwise, move on as an empty dialog doesn't help temporaryNPC->nextDialog(); break; -- cgit v1.2.3-70-g09d2