diff options
author | megamage <none@none> | 2009-06-03 21:47:38 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-03 21:47:38 -0500 |
commit | 37f4bf6a04564d0633c8e4fb04f112d5bc290f94 (patch) | |
tree | 6fc46e0e842f06247057ee8d014159a055217ec9 /src/game/Creature.cpp | |
parent | e858ac91eb62669abb086087d3c2516c3525b486 (diff) |
*Fix the bug that triggers are visible.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 78b40f28194..f817e8a57c9 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1444,9 +1444,9 @@ float Creature::GetSpellDamageMod(int32 Rank) bool Creature::CreateFromProto(uint32 guidlow, uint32 Entry, uint32 team, const CreatureData *data) { SetZoneScript(); - if(m_zoneScript) + if(m_zoneScript && data) { - Entry = m_zoneScript->GetCreatureEntry(guidlow, Entry); + Entry = m_zoneScript->GetCreatureEntry(guidlow, data); if(!Entry) return false; } |