mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 07:37:02 +00:00
[7257] Fixed unexpected errors in log and non-freed memory at battleground system shutdown.
This commit is contained in:
parent
0e37851a11
commit
6bacf2239f
5 changed files with 27 additions and 7 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include "Timer.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "MapManager.h"
|
||||
#include "BattleGroundMgr.h"
|
||||
|
||||
#include "Database/DatabaseEnv.h"
|
||||
|
||||
|
|
@ -75,6 +76,9 @@ void WorldRunnable::run()
|
|||
sWorld.KickAll(); // save and kick all players
|
||||
sWorld.UpdateSessions( 1 ); // real players unload required UpdateSessions call
|
||||
|
||||
// unload battleground templates before different singletons destroyed
|
||||
sBattleGroundMgr.DeleteAlllBattleGrounds();
|
||||
|
||||
sWorldSocketMgr->StopNetwork();
|
||||
|
||||
MapManager::Instance().UnloadAll(); // unload all grids (including locked in memory)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue