mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[10952] Don't use singleton to access static functions.
This commit is contained in:
parent
32649abe6b
commit
a0e298179c
9 changed files with 13 additions and 13 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue