NPCBots: Fix CI clang build 1

This commit is contained in:
trickerer
2026-05-02 09:00:41 +07:00
parent 4ea6f3f90f
commit c8ea17aba9

View File

@@ -131,7 +131,7 @@ enum SoundSetModels : uint32
SOUNDSETMODEL_BLOODELF_FEMALE_3 = 15520
};
static constexpr size_t RaceToRaceOffset[] = {
static constexpr size_t RaceToRaceOffset[MAX_RACES] = {
RACE_NONE,
0, //RACE_HUMAN
5, //RACE_ORC
@@ -431,25 +431,25 @@ static std::pair<uint8, uint8> GetZoneLevels(uint32 zoneId)
}
}
static bool IsNoWPZone(uint32 zoneId)
{
//Only maps 0 and 1 are covered
switch (zoneId)
{
case 1477: // Moonglade
case 1519: // Stormwind
case 1537: // Ironforge
case 1637: // Orgrimmar
case 1638: // Thunder Bluff
case 1657: // Darnassus
case 3487: // Silvermoon
case 3557: // Exodar
case 493: // Moonglade
return true;
default:
return false;
}
}
//static bool IsNoWPZone(uint32 zoneId)
//{
// //Only maps 0 and 1 are covered
// switch (zoneId)
// {
// case 1477: // Moonglade
// case 1519: // Stormwind
// case 1537: // Ironforge
// case 1637: // Orgrimmar
// case 1638: // Thunder Bluff
// case 1657: // Darnassus
// case 3487: // Silvermoon
// case 3557: // Exodar
// case 493: // Moonglade
// return true;
// default:
// return false;
// }
//}
static uint32 GetZoneIdOverride(uint32 zoneId)
{