Core/Battlegrounds: Unload all grids before destroying battleground object

Port From (https://github.com/TrinityCore/TrinityCore/commit/3fc3cd455b51d2de4ba5a70b7eff15e23b3da481)
This commit is contained in:
hondacrx
2023-01-23 00:26:06 -05:00
parent 8921432333
commit 7ab417f08b
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -1474,7 +1474,7 @@ namespace Game.Maps
}
}
public virtual void UnloadAll()
public void UnloadAll()
{
// clear all delayed moves, useless anyway do this moves before map unload.
creaturesToMove.Clear();