diff --git a/PlayerMethods.h b/PlayerMethods.h index 15c4260..b8b618d 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -739,7 +739,7 @@ namespace LuaPlayer #ifdef MANGOS Eluna::Push(L, player->GetMap()->GetUnit(player->GetComboTargetGuid())); #else - Eluna::Push(L, Unit::GetUnit(*player, player->GetComboTarget())); + Eluna::Push(L, ObjectAccessor::GetUnit(*player, player->GetComboTarget())); #endif return 1; }