[10952] Don't use singleton to access static functions.

This commit is contained in:
VladimirMangos 2011-01-03 14:19:25 +03:00
parent 32649abe6b
commit a0e298179c
9 changed files with 13 additions and 13 deletions

View file

@ -221,7 +221,7 @@ void WaypointManager::Load()
for(std::set<uint32>::const_iterator itr = creatureNoMoveType.begin(); itr != creatureNoMoveType.end(); ++itr)
{
const CreatureData* cData = sObjectMgr.GetCreatureData(*itr);
const CreatureInfo* cInfo = sObjectMgr.GetCreatureTemplate(cData->id);
const CreatureInfo* cInfo = ObjectMgr::GetCreatureTemplate(cData->id);
sLog.outErrorDb("Table creature_movement has waypoint for creature guid %u (entry %u), but MovementType is not WAYPOINT_MOTION_TYPE(2). Creature will not use this path.", *itr, cData->id);
@ -288,7 +288,7 @@ void WaypointManager::Load()
uint32 entry = fields[0].GetUInt32();
uint32 point = fields[1].GetUInt32();
const CreatureInfo* cInfo = sObjectMgr.GetCreatureTemplate(entry);
const CreatureInfo* cInfo = ObjectMgr::GetCreatureTemplate(entry);
if (!cInfo)
{