[7257] Fixed unexpected errors in log and non-freed memory at battleground system shutdown. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
1 parent
f62e062b0d
commit
70798207f8
5 files changed
+27
-7
No files matched your search
@@ -29,6 +29,7 @@
|
||||
#include "Timer.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "MapManager.h"
|
||||
#include "BattleGroundMgr.h"
|
||||
|
||||
#include "Database/DatabaseEnv.h"
|
||||
|
||||
@@ -77,6 +78,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)
|
||||
|
||||
Reference in new issue
Block a user