*Update to Mangos 7136.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-01-21 16:18:57 -06:00
1 parent 68c0bcd069
commit 4230318f96
57 files changed
+400 -219

No files matched your search

+2 -2
View File
@@ -146,11 +146,11 @@ void PetAI::UpdateAI(const uint32 diff)
else
m_updateAlliesTimer -= diff;
if (inCombat && i_pet.getVictim() == NULL)
if (inCombat && !i_pet.getVictim())
_stopAttack();
// i_pet.getVictim() can't be used for check in case stop fighting, i_pet.getVictim() clear at Unit death etc.
if( i_pet.getVictim() != NULL )
if( i_pet.getVictim() )
{
if( _needToStop() )
{