Core/Misc: Revert a static analysis "fix"

Revert assertion check added in 5dfd07fa4f , the issue reported by Coverity is a false positive.
This commit is contained in:
jackpoz
2015-03-29 14:27:54 +02:00
parent 47410157b1
commit 9ba60b52c5

View File

@@ -332,9 +332,6 @@ 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())