diff Actor.cpp @ 1115:849b848ed871

wrong IsNotAlive() condition fix
author Grumpy7
date Wed, 29 May 2013 03:19:12 +0200
parents d110108dab74
children 29a8defbad9e
line wrap: on
line diff
--- a/Actor.cpp	Tue May 28 00:49:43 2013 +0200
+++ b/Actor.cpp	Wed May 29 03:19:12 2013 +0200
@@ -243,12 +243,12 @@
 //----- (004089C7) --------------------------------------------------------
 bool Actor::IsNotAlive()
 {
-  bool isparalyzed; // esi@1
+  bool isstoned; // esi@1
   //unsigned __int16 v2; // ax@3
 
-  isparalyzed = (signed __int64)this->pActorBuffs[6].uExpireTime > 0;// paralyzed
+  isstoned = (signed __int64)this->pActorBuffs[5].uExpireTime > 0;// stoned
   //v2 = this->uAIState;
-  return (isparalyzed || (uAIState == Dying) || (uAIState == Dead) || (uAIState == Removed) || (uAIState == Summoned) || (uAIState == Disabled));
+  return (isstoned || (uAIState == Dying) || (uAIState == Dead) || (uAIState == Removed) || (uAIState == Summoned) || (uAIState == Disabled));
 }
 
 //----- (004086E9) --------------------------------------------------------