Core: Fix some warnings vs2014 ctp (no support)
This commit is contained in:
1 parent
b62ee5eea2
commit
29e0538624
7 files changed
+20
-18
No files matched your search
@@ -449,9 +449,9 @@ class spell_gen_bonked : public SpellScriptLoader
|
||||
target->CastSpell(target, SPELL_FOAM_SWORD_DEFEAT, true);
|
||||
target->RemoveAurasDueToSpell(SPELL_BONKED);
|
||||
|
||||
if (Aura const* aura = target->GetAura(SPELL_ON_GUARD))
|
||||
if (Aura const* auraOnGuard = target->GetAura(SPELL_ON_GUARD))
|
||||
{
|
||||
if (Item* item = target->GetItemByGuid(aura->GetCastItemGUID()))
|
||||
if (Item* item = target->GetItemByGuid(auraOnGuard->GetCastItemGUID()))
|
||||
target->DestroyItemCount(item->GetEntry(), 1, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user