diff options
author | megamage <none@none> | 2009-03-22 11:06:21 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-22 11:06:21 -0600 |
commit | 93db1e021995648f77c66e2aeb4fd323d594a5a5 (patch) | |
tree | d9230e0dba6a60cc06f3c1e2249884e6ef3c060d /src | |
parent | bb1563eecec10a50cb717ae2649dce08ecf545cf (diff) |
*Fix a crash caused by boss_kelidan_the_breaker script.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp b/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp index 7959b9a60cd..cfa99c2db7d 100644 --- a/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp +++ b/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp @@ -175,7 +175,10 @@ struct TRINITY_DLL_DECL boss_kelidan_the_breakerAI : public ScriptedAI Creature *channeler = (Creature*)Unit::GetUnit(*m_creature, Channelers[i]); if(!channeler || channeler->isDead()) channeler = m_creature->SummonCreature(ENTRY_CHANNELER,ShadowmoonChannelers[i][0],ShadowmoonChannelers[i][1],ShadowmoonChannelers[i][2],ShadowmoonChannelers[i][3],TEMPSUMMON_CORPSE_TIMED_DESPAWN,300000); - Channelers[i] = channeler->GetGUID(); + if(channeler) + Channelers[i] = channeler->GetGUID(); + else + Channelers[i] = 0; } } |