mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +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
|
|
@ -2713,7 +2713,7 @@ void Spell::DoCreateItem(uint32 i, uint32 itemtype)
|
|||
Player* player = (Player*)unitTarget;
|
||||
|
||||
uint32 newitemid = itemtype;
|
||||
ItemPrototype const *pProto = objmgr.GetItemPrototype( newitemid );
|
||||
ItemPrototype const *pProto = ObjectMgr::GetItemPrototype( newitemid );
|
||||
if(!pProto)
|
||||
{
|
||||
player->SendEquipError( EQUIP_ERR_ITEM_NOT_FOUND, NULL, NULL );
|
||||
|
|
@ -6516,7 +6516,7 @@ void Spell::EffectTransmitted(uint32 effIndex)
|
|||
{
|
||||
uint32 name_id = m_spellInfo->EffectMiscValue[effIndex];
|
||||
|
||||
GameObjectInfo const* goinfo = objmgr.GetGameObjectInfo(name_id);
|
||||
GameObjectInfo const* goinfo = ObjectMgr::GetGameObjectInfo(name_id);
|
||||
|
||||
if (!goinfo)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue