mirror of
https://github.com/azerothcore/mod-ale
synced 2025-12-01 21:15:19 +08:00
fix(CI): re-enable -Werror compile flag (#256)
This commit is contained in:
@@ -204,7 +204,7 @@ static void mar_encode_value(lua_State *L, mar_Buffer *buf, int val, size_t *idx
|
||||
}
|
||||
else {
|
||||
mar_Buffer rec_buf;
|
||||
unsigned int i;
|
||||
unsigned char i;
|
||||
lua_Debug ar;
|
||||
lua_pop(L, 1); /* pop nil */
|
||||
|
||||
|
||||
@@ -358,13 +358,13 @@ namespace LuaMap
|
||||
*/
|
||||
int GetCreaturesByAreaId(lua_State* L, Map* map)
|
||||
{
|
||||
uint32 areaId = Eluna::CHECKVAL<uint32>(L, 2, -1);
|
||||
int32 areaId = Eluna::CHECKVAL<int32>(L, 2, -1);
|
||||
std::vector<Creature*> filteredCreatures;
|
||||
|
||||
for (const auto& pair : map->GetCreatureBySpawnIdStore())
|
||||
{
|
||||
Creature* creature = pair.second;
|
||||
if (areaId == -1 || creature->GetAreaId() == areaId)
|
||||
if (areaId == -1 || creature->GetAreaId() == (uint32)areaId)
|
||||
{
|
||||
filteredCreatures.push_back(creature);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user