summaryrefslogtreecommitdiff
path: root/src/npc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/npc.cpp')
-rw-r--r--src/npc.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/npc.cpp b/src/npc.cpp
index 658334bc..ecac2509 100644
--- a/src/npc.cpp
+++ b/src/npc.cpp
@@ -181,9 +181,6 @@ void NPC::handleDeath()
if (npcTextDialog->isVisible())
npcTextDialog->showCloseButton();
- else if (current_npc) {
- NPC *temp = current_npc;
+ else
current_npc = NULL;
- delete temp;
- }
}