aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-06 15:07:56 -0600
committermegamage <none@none>2009-02-06 15:07:56 -0600
commit87474cabdb777d49f6fd05b34064256e03f764cd (patch)
treef8df6a1a3f2c7af32a0173774612a6a112fd58bc
parent9332f1e58df687ffb9f199aca227dce46ce7cf45 (diff)
*Fix the immediate crash during startup.
--HG-- branch : trunk
-rw-r--r--src/game/SpellMgr.cpp18
1 files changed, 9 insertions, 9 deletions
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() );