Make WaypointMgr to singleton.

Move global waypoint_map variable to WaypointMgr's private variable.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2010-05-13 00:08:30 +02:00
parent 8223af6576
commit 4a448eca37
6 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -1562,7 +1562,7 @@ void World::SetInitialWorldSettings()
objmgr.LoadTrainerSpell(); // must be after load CreatureTemplate
sLog.outString("Loading Waypoints...");
WaypointMgr.Load();
sWaypointMgr->Load();
sLog.outString("Loading Creature Formations...");
formation_mgr.LoadCreatureFormations();