aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authorShauren <none@none>2010-12-22 20:23:47 +0100
committerShauren <none@none>2010-12-22 20:23:47 +0100
commit7b4e1c6387a6787c2b2822494abae6b717f24547 (patch)
treee336ea590dc6fc1520f33d3279eb36bb572fa3b1 /src/server/game/Spells/SpellEffects.cpp
parent446c30050583bf1605ca6b402020fb68fcdc85d4 (diff)
Core/ObjectMgr: Static members are no longer accessed through singleton
--HG-- branch : trunk
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rwxr-xr-xsrc/server/game/Spells/SpellEffects.cpp6
1 files changed, 3 insertions, 3 deletions
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);