Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons)
This commit is contained in:
@@ -504,7 +504,7 @@ ItemTemplate const *Item::GetTemplate() const
|
||||
|
||||
Player* Item::GetOwner()const
|
||||
{
|
||||
return sObjectMgr->GetPlayer(GetOwnerGUID());
|
||||
return ObjectAccessor::FindPlayer(GetOwnerGUID());
|
||||
}
|
||||
|
||||
uint32 Item::GetSkill()
|
||||
|
||||
Reference in New Issue
Block a user