mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
fix(CI): re-enable -Werror compile flag (#256)
This commit is contained in:
2
.github/workflows/core-build-base.yml
vendored
2
.github/workflows/core-build-base.yml
vendored
@@ -58,6 +58,8 @@ jobs:
|
||||
-DCMAKE_BUILD_TYPE="Release" \
|
||||
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
|
||||
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \
|
||||
-DCMAKE_C_FLAGS="-Werror" \
|
||||
-DCMAKE_CXX_FLAGS="-Werror" \
|
||||
-DLUA_VERSION=${{ inputs.lua_version }}
|
||||
make -j$(nproc)
|
||||
cd ..
|
||||
|
||||
@@ -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