mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Don't use singleton to access static functions.
* This affects especially ObjectMgr functions: - GetCreatureInfo - GetGameObjectInfo - GetInstanceTemplate These are in fact static functions.
This commit is contained in:
parent
34dab079c4
commit
1f23884757
40 changed files with 104 additions and 104 deletions
|
|
@ -7279,7 +7279,7 @@ bool PlayerCondition::IsValid(ConditionType condition, uint32 value1, uint32 val
|
|||
}
|
||||
case CONDITION_ITEM:
|
||||
{
|
||||
ItemPrototype const *proto = objmgr.GetItemPrototype(value1);
|
||||
ItemPrototype const *proto = ObjectMgr::GetItemPrototype(value1);
|
||||
if(!proto)
|
||||
{
|
||||
sLog.outErrorDb("Item condition requires to have non existing item (%u), skipped", value1);
|
||||
|
|
@ -7289,7 +7289,7 @@ bool PlayerCondition::IsValid(ConditionType condition, uint32 value1, uint32 val
|
|||
}
|
||||
case CONDITION_ITEM_EQUIPPED:
|
||||
{
|
||||
ItemPrototype const *proto = objmgr.GetItemPrototype(value1);
|
||||
ItemPrototype const *proto = ObjectMgr::GetItemPrototype(value1);
|
||||
if(!proto)
|
||||
{
|
||||
sLog.outErrorDb("ItemEquipped condition requires to have non existing item (%u) equipped, skipped", value1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue