mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
*Fix a crash in warbringer_omrogg.
--HG-- branch : trunk
This commit is contained in:
@@ -186,7 +186,7 @@ struct TRINITY_DLL_DECL boss_warbringer_omroggAI : public ScriptedAI
|
||||
Unit *Left = Unit::GetUnit(*m_creature,LeftHead);
|
||||
Unit *Right = Unit::GetUnit(*m_creature,RightHead);
|
||||
|
||||
if (!Left && !Right)
|
||||
if (!Left || !Right)
|
||||
return;
|
||||
|
||||
ithreat = rand()%4;
|
||||
@@ -239,7 +239,7 @@ struct TRINITY_DLL_DECL boss_warbringer_omroggAI : public ScriptedAI
|
||||
Unit *Left = Unit::GetUnit(*m_creature,LeftHead);
|
||||
Unit *Right = Unit::GetUnit(*m_creature,RightHead);
|
||||
|
||||
if (!Left && !Right)
|
||||
if (!Left || !Right)
|
||||
return;
|
||||
|
||||
ikilling = rand()%2;
|
||||
@@ -268,7 +268,7 @@ struct TRINITY_DLL_DECL boss_warbringer_omroggAI : public ScriptedAI
|
||||
Unit *Left = Unit::GetUnit(*m_creature,LeftHead);
|
||||
Unit *Right = Unit::GetUnit(*m_creature,RightHead);
|
||||
|
||||
if (!Left && !Right)
|
||||
if (!Left || !Right)
|
||||
return;
|
||||
|
||||
DoScriptText(YELL_DIE_L, Left);
|
||||
|
||||
Reference in New Issue
Block a user