aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-02 09:53:01 -0600
committermegamage <none@none>2009-02-02 09:53:01 -0600
commit5299225a8bb052e808fc749ff65d7208da54c866 (patch)
tree30b47714f9192dcbf09adc45031871efa8927100 /src/game/Creature.cpp
parent617dc4b64c1e0a861ff1d7f28a725bc8561875fd (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.cpp6
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())