aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-01-14 17:28:10 -0300
committerariel- <ariel-@users.noreply.github.com>2018-01-14 17:28:10 -0300
commit50a84f0b2bb537380ad501d180b242d0fe6ff46b (patch)
treef5c8389b376794e7696eb274fe574e89b42e26ae /src
parent5153f464d8a4e5ae0b47900f92eeaf6c9f9eee50 (diff)
Core/Scripts: fix static analysis issue
CID 1384439
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index 16aabf45d1e..f8791201a82 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -139,7 +139,7 @@ class spell_hun_aspect_of_the_beast_pet : public AuraScript
void OnApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
Player* owner = GetUnitOwner()->GetSpellModOwner();
- if (!owner->HasAura(SPELL_HUNTER_ASPECT_OF_THE_BEAST))
+ if (!ASSERT_NOTNULL(owner)->HasAura(SPELL_HUNTER_ASPECT_OF_THE_BEAST))
Remove();
}