aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-04-28 15:59:34 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-02 00:39:28 +0100
commitcf979de8133767d598f002c8c2e7b61355ac634d (patch)
treec5f7ed7d1a15743be0549cb52527ba2123336107
parent841f0452a4e8a6cbf694bb829cd7e573d4c26385 (diff)
Core/Misc: Fix some GCC 8 warnings
(cherry picked from commit 26b6cb0584b50a2540e977cac8fa040c82fe7bb4)
-rw-r--r--src/server/scripts/Northrend/zone_zuldrak.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Northrend/zone_zuldrak.cpp b/src/server/scripts/Northrend/zone_zuldrak.cpp
index ecaeda85eb1..09c48833294 100644
--- a/src/server/scripts/Northrend/zone_zuldrak.cpp
+++ b/src/server/scripts/Northrend/zone_zuldrak.cpp
@@ -1016,7 +1016,7 @@ class spell_scourge_disguise_expiring : public AuraScript
void OnApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (Player* player = GetTarget()->ToPlayer())
- if (Aura* aura = player->GetAura(SPELL_SCOURGE_DISGUISE))
+ if (player->HasAura(SPELL_SCOURGE_DISGUISE))
player->Unit::Whisper(TEXT_DISGUISE_WARNING, player, true);
}
@@ -1033,7 +1033,7 @@ class spell_drop_disguise : public SpellScript
void HandleHit()
{
if (Unit* target = GetHitUnit())
- if (Aura* aura = target->GetAura(SPELL_SCOURGE_DISGUISE))
+ if (target->HasAura(SPELL_SCOURGE_DISGUISE))
target->CastSpell(target, SPELL_SCOURGE_DISGUISE_EXPIRING, true);
}