From 7b4e1c6387a6787c2b2822494abae6b717f24547 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 22 Dec 2010 20:23:47 +0100 Subject: Core/ObjectMgr: Static members are no longer accessed through singleton --HG-- branch : trunk --- src/server/game/Spells/SpellEffects.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/game/Spells/SpellEffects.cpp') diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index d2e079e9ef1..97def26e5c9 100755 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -2321,7 +2321,7 @@ void Spell::DoCreateItem(uint32 /*i*/, uint32 itemtype) Player* player = (Player*)unitTarget; uint32 newitemid = itemtype; - ItemPrototype const *pProto = sObjectMgr.GetItemPrototype(newitemid); + ItemPrototype const *pProto = ObjectMgr::GetItemPrototype(newitemid); if (!pProto) { player->SendEquipError(EQUIP_ERR_ITEM_NOT_FOUND, NULL, NULL); @@ -6295,7 +6295,7 @@ void Spell::EffectTransmitted(SpellEffIndex effIndex) { uint32 name_id = m_spellInfo->EffectMiscValue[effIndex]; - GameObjectInfo const* goinfo = sObjectMgr.GetGameObjectInfo(name_id); + GameObjectInfo const* goinfo = ObjectMgr::GetGameObjectInfo(name_id); if (!goinfo) { @@ -7035,7 +7035,7 @@ void Spell::EffectRechargeManaGem(SpellEffIndex /*effIndex*/) uint32 item_id = m_spellInfo->EffectItemType[0]; - ItemPrototype const *pProto = sObjectMgr.GetItemPrototype(item_id); + ItemPrototype const *pProto = ObjectMgr::GetItemPrototype(item_id); if (!pProto) { player->SendEquipError(EQUIP_ERR_ITEM_NOT_FOUND, NULL, NULL); -- cgit v1.2.3