From a01d397c3d345aa1937bc929b72e41673f327209 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Fri, 8 Dec 2017 17:33:10 +0100 Subject: Core/Misc: Fix static analysis issues Fix static analysis issues reported by 3rd party tools (cherry picked from commit 24e82fe83d384e3a4cf17719e728760053516607) --- src/server/scripts/Spells/spell_quest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Spells') diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index f74279148d0..68287bf2c64 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -924,7 +924,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); -- cgit v1.2.3