diff options
author | megamage <none@none> | 2008-12-21 23:14:42 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-21 23:14:42 -0600 |
commit | 3bdf880c203300da7995fbd47a7c4111609a5323 (patch) | |
tree | 3d791db9f9bb9a31f7c78f2c1cbdb0b4e6779eee | |
parent | 6343a869a207aa22e0c66b77221a0ce7d3db7e65 (diff) |
*Try to fix the build in Linux.
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellMgr.cpp | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index fb14164b98e..18fcf5ecdfa 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -1449,21 +1449,17 @@ void SpellMgr::LoadSpellRequired() sLog.outString( ">> Loaded %u spell required records", rows ); } -void SpellMgr::LoadSpellChains() +struct SpellRankEntry { - mSpellChains.clear(); // need for reload case - - struct SpellRankEntry - { - uint32 SkillId; - char const *SpellName; - uint32 DurationIndex; - uint32 RangeIndex; - uint32 SpellVisual; - uint32 ProcFlags; - uint64 SpellFamilyFlags; - uint32 TargetAuraState; - uint32 ManaCost; + uint32 SkillId; + char const *SpellName; + uint32 DurationIndex; + uint32 RangeIndex; + uint32 SpellVisual; + uint32 ProcFlags; + uint64 SpellFamilyFlags; + uint32 TargetAuraState; + uint32 ManaCost; bool operator()(const SpellRankEntry & _Left,const SpellRankEntry & _Right)const { @@ -1478,12 +1474,17 @@ void SpellMgr::LoadSpellChains() : _Left.TargetAuraState < _Right.TargetAuraState ); } - }; - struct SpellRankValue - { - uint32 Id; - char const *Rank; - }; +}; + +struct SpellRankValue +{ + uint32 Id; + char const *Rank; +}; + +void SpellMgr::LoadSpellChains() +{ + mSpellChains.clear(); // need for reload case std::multimap<SpellRankEntry, SpellRankValue,SpellRankEntry> RankMap; |