Skip to content

Commit

Permalink
Core/Map: Fix crash when battlegrounds ends
Browse files Browse the repository at this point in the history
Closes #712
  • Loading branch information
d3athbl0w authored and killerwife committed Dec 5, 2024
1 parent cf9593d commit 8ea4cc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/Maps/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2148,6 +2148,9 @@ void BattleGroundMap::Update(const uint32& diff)
{
Map::Update(diff);

if (!m_bg)
return;

if (!m_bg->GetPlayersSize())
{
// BG is empty
Expand Down

0 comments on commit 8ea4cc9

Please sign in to comment.