summaryrefslogtreecommitdiff
path: root/src/net/tmwa/npchandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/npchandler.cpp')
-rw-r--r--src/net/tmwa/npchandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp
index 9478282ea..e4a9296fc 100644
--- a/src/net/tmwa/npchandler.cpp
+++ b/src/net/tmwa/npchandler.cpp
@@ -48,6 +48,11 @@ NpcHandler::NpcHandler() :
npcHandler = this;
}
+NpcHandler::~NpcHandler()
+{
+ npcHandler = nullptr;
+}
+
void NpcHandler::talk(const Being *const being) const
{
if (being == nullptr)