Core/Misc: Remove Unit::Get* wrappers for ObjectAccessor::Get*

This commit is contained in:
jackpoz
2014-05-20 21:21:33 +02:00
parent d36ecbf4a3
commit 1083dbb993
148 changed files with 728 additions and 746 deletions

View File

@@ -561,7 +561,7 @@ void GameObject::Update(uint32 diff)
CastSpell(NULL, goInfo->trap.spellId);
SetLootState(GO_JUST_DEACTIVATED);
}
else if (Unit* target = Unit::GetUnit(*this, m_lootStateUnitGUID))
else if (Unit* target = ObjectAccessor::GetUnit(*this, m_lootStateUnitGUID))
{
// Some traps do not have a spell but should be triggered
if (goInfo->trap.spellId)