Merge pull request #251 from jellemeeus/master

fix compiler warnings
This commit is contained in:
ZhengPeiRu21
2024-04-12 13:04:03 -06:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ public:
{ {
if (zombie->IsAlive()) if (zombie->IsAlive())
{ {
int32 reduceHp = int32(zombie->GetMaxHealth() * 0.05f); uint32 reduceHp = uint32(zombie->GetMaxHealth() * 0.05f);
if (zombie->GetHealth() > reduceHp) if (zombie->GetHealth() > reduceHp)
zombie->SetHealth(reduceHp); // Reduce HP to 5% zombie->SetHealth(reduceHp); // Reduce HP to 5%
zombie->SetWalk(true); // Set to walk zombie->SetWalk(true); // Set to walk

View File

@@ -1363,7 +1363,7 @@ public:
return new gobject_naxx40_teleAI(object); return new gobject_naxx40_teleAI(object);
} }
bool OnGossipHello(Player* player, GameObject* go) override bool OnGossipHello(Player* player, GameObject* /*go*/) override
{ {
if ((!sIndividualProgression->requireNaxxStrath || player->GetQuestStatus(NAXX40_ENTRANCE_FLAG) == QUEST_STATUS_REWARDED) && isAttuned(player)) if ((!sIndividualProgression->requireNaxxStrath || player->GetQuestStatus(NAXX40_ENTRANCE_FLAG) == QUEST_STATUS_REWARDED) && isAttuned(player))
{ {