summaryrefslogtreecommitdiff
path: root/src/net/eathena/battlegroundhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/battlegroundhandler.cpp')
-rw-r--r--src/net/eathena/battlegroundhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp
index 606b90cc1..09bc28a01 100644
--- a/src/net/eathena/battlegroundhandler.cpp
+++ b/src/net/eathena/battlegroundhandler.cpp
@@ -35,6 +35,11 @@ BattleGroundHandler::BattleGroundHandler()
battleGroundHandler = this;
}
+BattleGroundHandler::~BattleGroundHandler()
+{
+ battleGroundHandler = nullptr;
+}
+
void BattleGroundHandler::registerBg(const BattleGroundTypeT &type,
const std::string &name) const
{