Eluna: Fix warnings

This commit is contained in:
Rochet2
2014-09-20 17:44:50 +03:00
parent 16185423ab
commit ecb076b654
2 changed files with 5 additions and 1 deletions

View File

@@ -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;

View File

@@ -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;