mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna: Fix warnings
This commit is contained in:
@@ -1164,7 +1164,7 @@ namespace LuaCreature
|
||||
}
|
||||
|
||||
#ifdef TRINITY
|
||||
int ResetLootMode(lua_State* L, Creature* creature) // TODO: Implement LootMode features
|
||||
int ResetLootMode(lua_State* /*L*/, Creature* creature) // TODO: Implement LootMode features
|
||||
{
|
||||
creature->ResetLootMode();
|
||||
return 0;
|
||||
|
||||
@@ -444,6 +444,8 @@ namespace LuaWorldObject
|
||||
#endif
|
||||
case HIGHGUID_UNIT:
|
||||
case HIGHGUID_PET: Eluna::Push(L, obj->GetMap()->GetAnyTypeCreature(ObjectGuid(guid))); break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
#else
|
||||
switch (GUID_HIPART(guid))
|
||||
@@ -455,6 +457,8 @@ namespace LuaWorldObject
|
||||
case HIGHGUID_VEHICLE:
|
||||
case HIGHGUID_UNIT: Eluna::Push(L, eObjectAccessor->GetCreature(*obj, ObjectGuid(guid))); break;
|
||||
case HIGHGUID_PET: Eluna::Push(L, eObjectAccessor->GetPet(*obj, ObjectGuid(guid))); break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user