diff --git a/GameObjectMethods.h b/GameObjectMethods.h index 16c3389..f5815b2 100644 --- a/GameObjectMethods.h +++ b/GameObjectMethods.h @@ -138,7 +138,11 @@ namespace LuaGameObject */ int GetLootRecipientGroup(Eluna* /*E*/, lua_State* L, GameObject* go) { +#ifdef MANGOS + Eluna::Push(L, go->GetGroupLootRecipient()); +#else Eluna::Push(L, go->GetLootRecipientGroup()); +#endif return 1; }