diff options
author | megamage <none@none> | 2009-02-02 09:53:01 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-02 09:53:01 -0600 |
commit | 5299225a8bb052e808fc749ff65d7208da54c866 (patch) | |
tree | 30b47714f9192dcbf09adc45031871efa8927100 /src/game/Creature.cpp | |
parent | 617dc4b64c1e0a861ff1d7f28a725bc8561875fd (diff) |
[7220] Check creature spells data at server startup. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 8134cd71de5..9ff0e7a1f8e 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -360,10 +360,8 @@ bool Creature::UpdateEntry(uint32 Entry, uint32 team, const CreatureData *data ) SetPvP(true); } - m_spells[0] = GetCreatureInfo()->spell1; - m_spells[1] = GetCreatureInfo()->spell2; - m_spells[2] = GetCreatureInfo()->spell3; - m_spells[3] = GetCreatureInfo()->spell4; + for(int i=0; i < CREATURE_MAX_SPELLS; ++i) + m_spells[i] = GetCreatureInfo()->spells[i]; // HACK: trigger creature is always not selectable if(isTrigger()) |