summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index 1b706495f..2b768ffe2 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -47,6 +47,11 @@ ChatHandler::ChatHandler() :
chatHandler = this;
}
+ChatHandler::~ChatHandler()
+{
+ chatHandler = nullptr;
+}
+
void ChatHandler::talk(const std::string &restrict text,
const std::string &restrict channel A_UNUSED) const
{