*Fix a crash of warbringer_omrogg script.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-03 12:01:50 -06:00
parent 335c04b791
commit b449693f17
@@ -286,13 +286,13 @@ struct TRINITY_DLL_DECL boss_warbringer_omroggAI : public ScriptedAI
{ {
Delay_Timer = 3500; Delay_Timer = 3500;
if (!LeftHead && !RightHead) if (!LeftHead || !RightHead)
return; return;
Unit *Left = Unit::GetUnit(*m_creature,LeftHead); Unit *Left = Unit::GetUnit(*m_creature,LeftHead);
Unit *Right = Unit::GetUnit(*m_creature,RightHead); Unit *Right = Unit::GetUnit(*m_creature,RightHead);
if (!Left && !Right) if (!Left || !Right)
return; return;
if (AggroYell) if (AggroYell)