changeset 1115:849b848ed871

wrong IsNotAlive() condition fix
author Grumpy7
date Wed, 29 May 2013 03:19:12 +0200
parents d110108dab74
children 6a4d654ef9fb
files Actor.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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) --------------------------------------------------------