aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-04-28 15:59:34 +0200
committerjackpoz <giacomopoz@gmail.com>2019-04-28 15:59:34 +0200
commit26b6cb0584b50a2540e977cac8fa040c82fe7bb4 (patch)
tree4f0df6393b313dba881c022626b3362a31854785 /src
parentd910ffd77949f422bd08f12079866962fb53c4dc (diff)
Core/Misc: Fix some GCC 8 warnings
Diffstat (limited to 'src')
-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 4c3e9d037af..37fc421cb0b 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);
}