aboutsummaryrefslogtreecommitdiff
path: root/src/game/PetAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/PetAI.cpp')
-rw-r--r--src/game/PetAI.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp
index fc305d5f122..2c9c88781ee 100644
--- a/src/game/PetAI.cpp
+++ b/src/game/PetAI.cpp
@@ -77,6 +77,9 @@ void PetAI::_stopAttack()
void PetAI::UpdateAI(const uint32 diff)
{
+ if (!m_creature->isAlive())
+ return;
+
Unit* owner = m_creature->GetCharmerOrOwner();
if(m_updateAlliesTimer <= diff)