mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-01 22:56:39 +01:00
*Fix the immediate crash during startup.
--HG-- branch : trunk
This commit is contained in:
@@ -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() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user