mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +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
|
|
@ -416,7 +416,7 @@ uint32 Creature::ChooseDisplayId(const CreatureInfo *cinfo, const CreatureData *
|
|||
{
|
||||
sLog.outErrorDb("Call customer support, ChooseDisplayId can not select native model for creature entry %u, model from creature entry 1 will be used instead.", cinfo->Entry);
|
||||
|
||||
if (const CreatureInfo *creatureDefault = sObjectMgr.GetCreatureTemplate(1))
|
||||
if (const CreatureInfo *creatureDefault = ObjectMgr::GetCreatureTemplate(1))
|
||||
display_id = creatureDefault->ModelId[0];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue