diff options
author | megamage <none@none> | 2008-12-15 09:19:01 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-15 09:19:01 -0600 |
commit | 79314e0768c797809b25eb7533361dafa466ce78 (patch) | |
tree | 81d343f4b8b6a5a492e7a7698640acd062609f87 /src | |
parent | 4b47c30641d31661c530e21dfd24a79b405736d2 (diff) |
*Fix a bug that LoadSpellChains causes crash. By QAston.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 07db96ad71e..3a97fdc9b89 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -1377,7 +1377,7 @@ void SpellMgr::LoadSpellChains() if (cur_row==rows-1 || SpellChainTable[cur_row+1].first!= node.first ) { //get field "last" - for (uint32 last_row=1;SpellChainTable[cur_row-last_row].first == node.first;last_row++) + for (uint32 last_row = 1; cur_row - last_row < rows && SpellChainTable[cur_row - last_row].first == node.first; ++last_row) mSpellChains[SpellChainTable[cur_row-last_row].spell].last = spell_id; node.last = spell_id; node.next = 0; |