From 977c46ec1e36540b47fd00bb82a2f97d4b24c9c1 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 25 Aug 2009 10:49:41 -0500 Subject: *Fix a crash. --HG-- branch : trunk --- src/game/SpellAuras.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 744f3d42ee4..84840e6b32c 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -591,8 +591,9 @@ AuraEffect* CreateAuraEffect(Aura * parentAura, uint32 effIndex, int32 *currentB else if (parentAura->GetSpellProto()->Effect[effIndex] == SPELL_EFFECT_PERSISTENT_AREA_AURA) { //assert(source->isType(TYPEMASK_DYNAMICOBJECT)); - assert(IS_DYNAMICOBJECT_GUID(sourceGuid)); - return new PersistentAreaAuraEffect(parentAura, effIndex, currentBasePoints); + // TODO: creature addon or save? may add persistent AA without correct source + if(IS_DYNAMICOBJECT_GUID(sourceGuid)); + return new PersistentAreaAuraEffect(parentAura, effIndex, currentBasePoints); } return NULL; } -- cgit v1.2.3