diff options
| author | Shauren <none@none> | 2010-12-22 20:23:47 +0100 |
|---|---|---|
| committer | Shauren <none@none> | 2010-12-22 20:23:47 +0100 |
| commit | 7b4e1c6387a6787c2b2822494abae6b717f24547 (patch) | |
| tree | e336ea590dc6fc1520f33d3279eb36bb572fa3b1 /src/server/game/Chat/Commands | |
| parent | 446c30050583bf1605ca6b402020fb68fcdc85d4 (diff) | |
Core/ObjectMgr: Static members are no longer accessed through singleton
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Chat/Commands')
| -rwxr-xr-x | src/server/game/Chat/Commands/Level2.cpp | 2 | ||||
| -rwxr-xr-x | src/server/game/Chat/Commands/Level3.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/Chat/Commands/Level2.cpp b/src/server/game/Chat/Commands/Level2.cpp index 4124b54a7e8..fccca696d0f 100755 --- a/src/server/game/Chat/Commands/Level2.cpp +++ b/src/server/game/Chat/Commands/Level2.cpp @@ -762,7 +762,7 @@ bool ChatHandler::HandleCreatePetCommand(const char* /*args*/) return false; } - CreatureInfo const* cInfo = sObjectMgr.GetCreatureTemplate(creatureTarget->GetEntry()); + CreatureInfo const* cInfo = ObjectMgr::GetCreatureTemplate(creatureTarget->GetEntry()); // Creatures with family 0 crashes the server if (cInfo->family == 0) { diff --git a/src/server/game/Chat/Commands/Level3.cpp b/src/server/game/Chat/Commands/Level3.cpp index d765b9e2a17..b3e37fb7332 100755 --- a/src/server/game/Chat/Commands/Level3.cpp +++ b/src/server/game/Chat/Commands/Level3.cpp @@ -261,7 +261,7 @@ bool ChatHandler::HandleAddItemCommand(const char *args) sLog.outDetail(GetTrinityString(LANG_ADDITEM), itemId, count); - ItemPrototype const *pProto = sObjectMgr.GetItemPrototype(itemId); + ItemPrototype const *pProto = ObjectMgr::GetItemPrototype(itemId); if (!pProto) { PSendSysMessage(LANG_COMMAND_ITEMIDINVALID, itemId); @@ -400,7 +400,7 @@ bool ChatHandler::HandleListItemCommand(const char *args) return false; } - ItemPrototype const* itemProto = sObjectMgr.GetItemPrototype(item_id); + ItemPrototype const* itemProto = ObjectMgr::GetItemPrototype(item_id); if (!itemProto) { PSendSysMessage(LANG_COMMAND_ITEMIDINVALID, item_id); @@ -615,7 +615,7 @@ bool ChatHandler::HandleListObjectCommand(const char *args) return false; } - GameObjectInfo const * gInfo = sObjectMgr.GetGameObjectInfo(go_id); + GameObjectInfo const * gInfo = ObjectMgr::GetGameObjectInfo(go_id); if (!gInfo) { PSendSysMessage(LANG_COMMAND_LISTOBJINVALIDID, go_id); @@ -687,7 +687,7 @@ bool ChatHandler::HandleListCreatureCommand(const char *args) return false; } - CreatureInfo const* cInfo = sObjectMgr.GetCreatureTemplate(cr_id); + CreatureInfo const* cInfo = ObjectMgr::GetCreatureTemplate(cr_id); if (!cInfo) { PSendSysMessage(LANG_COMMAND_INVALIDCREATUREID, cr_id); @@ -4262,7 +4262,7 @@ bool ChatHandler::HandleSendItemsCommand(const char *args) if (!item_id) return false; - ItemPrototype const* item_proto = sObjectMgr.GetItemPrototype(item_id); + ItemPrototype const* item_proto = ObjectMgr::GetItemPrototype(item_id); if (!item_proto) { PSendSysMessage(LANG_COMMAND_ITEMIDINVALID, item_id); |
