Skip to content
Browse files

Fixed a crash on closing mangosd.exe

  • Loading branch information...
1 parent 9c63c14 commit 59159f0b887c7423f53ad2b571daab9c106b63a5 @Psimage committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/game/BattleGround.cpp
View
4 src/game/BattleGround.cpp
@@ -271,7 +271,9 @@ BattleGround::~BattleGround()
DelObject(i);
sBattleGroundMgr.RemoveBattleGround(GetInstanceID(), GetTypeID());
- sBattleGroundMgr.DeleteClientVisibleInstanceId(GetTypeID(), GetBracketId(), GetClientInstanceID());
+ // if its not template bg
+ if(GetBracketId()!=MAX_BATTLEGROUND_BRACKETS)
+ sBattleGroundMgr.DeleteClientVisibleInstanceId(GetTypeID(), GetBracketId(), GetClientInstanceID());
// unload map
// map can be null at bg destruction

0 comments on commit 59159f0

Please sign in to comment.
Something went wrong with that request. Please try again.