From 8ea4cc9489e327bb0abc26c2d945abcaf10c8e56 Mon Sep 17 00:00:00 2001 From: d3athbl0w Date: Wed, 4 Dec 2024 22:08:05 -0400 Subject: [PATCH] Core/Map: Fix crash when battlegrounds ends Closes https://github.com/cmangos/mangos-tbc/pull/712 --- src/game/Maps/Map.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/Maps/Map.cpp b/src/game/Maps/Map.cpp index bf34bbd778..78e5beeb72 100644 --- a/src/game/Maps/Map.cpp +++ b/src/game/Maps/Map.cpp @@ -2148,6 +2148,9 @@ void BattleGroundMap::Update(const uint32& diff) { Map::Update(diff); + if (!m_bg) + return; + if (!m_bg->GetPlayersSize()) { // BG is empty