diff options
| author | jackpoz <giacomopoz@gmail.com> | 2017-12-08 17:33:10 +0100 |
|---|---|---|
| committer | funjoker <funjoker109@gmail.com> | 2021-02-25 18:50:55 +0100 |
| commit | a01d397c3d345aa1937bc929b72e41673f327209 (patch) | |
| tree | 51074224df377b1dcbc3d86c14ee61aff67b14af /src/server/scripts/Spells | |
| parent | 668a3ad643d926f717840398421992c9cd21ca5a (diff) | |
Core/Misc: Fix static analysis issues
Fix static analysis issues reported by 3rd party tools
(cherry picked from commit 24e82fe83d384e3a4cf17719e728760053516607)
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
