diff options
author | megamage <none@none> | 2009-08-25 10:49:41 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-25 10:49:41 -0500 |
commit | 977c46ec1e36540b47fd00bb82a2f97d4b24c9c1 (patch) | |
tree | 689a3808016b6dbc312825e89907ab86f139bd08 | |
parent | 4f87bad87bfc4b05f106e3a96b26ffb30b2628e4 (diff) |
*Fix a crash.
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellAuras.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |