aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2015-01-18 18:30:34 +0100
committerjackpoz <giacomopoz@gmail.com>2015-01-18 18:30:34 +0100
commit5dfd07fa4f1383105e1bdb8ece173a660c7dd3d2 (patch)
treecccc81a11b6b6a0222e53ca55752cc02b3bb1abc /src/server/game/Spells
parentdfa0f2a2538ab004244acdd0446d73060b4d6a88 (diff)
Core/Misc: Fix static analysis issues
Fix some static analysis issues reported by Coverity
Diffstat (limited to 'src/server/game/Spells')
-rw-r--r--src/server/game/Spells/Auras/SpellAuras.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
index 1f2d599121e..edbc9ab37b6 100644
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -327,6 +327,9 @@ Aura* Aura::Create(SpellInfo const* spellproto, uint32 effMask, WorldObject* own
else
casterGUID = caster->GetGUID();
+ // at this point of Aura::Create() there MUST be a valid caster
+ ASSERT(caster);
+
// check if aura can be owned by owner
if (owner->isType(TYPEMASK_UNIT))
if (!owner->IsInWorld() || ((Unit*)owner)->IsDuringRemoveFromWorld())