From 87474cabdb777d49f6fd05b34064256e03f764cd Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 6 Feb 2009 15:07:56 -0600 Subject: *Fix the immediate crash during startup. --HG-- branch : trunk --- src/game/SpellMgr.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 53683a6ebdc..2863e19fe9d 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -2265,15 +2265,6 @@ void SpellMgr::LoadSpellLinked() continue; } - if(type) //we will find a better way when more types are needed - { - if(trigger > 0) - trigger += SPELL_LINKED_MAX_SPELLS * type; - else - trigger -= SPELL_LINKED_MAX_SPELLS * type; - } - mSpellLinkedMap[trigger].push_back(effect); - if(trigger > 0) { switch(type) @@ -2288,6 +2279,15 @@ void SpellMgr::LoadSpellLinked() mSpellCustomAttr[-trigger] |= SPELL_ATTR_CU_LINK_REMOVE; } + if(type) //we will find a better way when more types are needed + { + if(trigger > 0) + trigger += SPELL_LINKED_MAX_SPELLS * type; + else + trigger -= SPELL_LINKED_MAX_SPELLS * type; + } + mSpellLinkedMap[trigger].push_back(effect); + ++count; } while( result->NextRow() ); -- cgit v1.2.3