Core/Misc: Fix static analysis issues

This commit is contained in:
Aokromes committed 2017-12-09 00:00:27 +01:00
1 parent 21cad46097
commit 5efa54d11c
12 files changed
+27 -27

No files matched your search

+1 -1
View File
@@ -928,7 +928,7 @@ class spell_q9874_liquid_fire : public SpellScriptLoader
{
Player* caster = GetCaster()->ToPlayer();
if (Creature* target = GetHitCreature())
if (target && !target->HasAura(SPELL_FLAMES))
if (!target->HasAura(SPELL_FLAMES))
{
caster->KilledMonsterCredit(NPC_VILLAGER_KILL_CREDIT);
target->CastSpell(target, SPELL_FLAMES, true);