summaryrefslogtreecommitdiff
path: root/src/net/tmwa/playerhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r--src/net/tmwa/playerhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index bf246b39e..70139cd4a 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -53,6 +53,11 @@ PlayerHandler::PlayerHandler() :
playerHandler = this;
}
+PlayerHandler::~PlayerHandler()
+{
+ playerHandler = nullptr;
+}
+
void PlayerHandler::attack(const BeingId id,
const Keep keep) const
{