diff Actor.cpp @ 305:cc8e4dc397ec

MonsterPopup_Draw crash fix
author Nomad
date Tue, 19 Feb 2013 21:50:33 +0200
parents 3dcc9d945eeb
children 6d584c95dcf8
line wrap: on
line diff
--- a/Actor.cpp	Tue Feb 19 15:40:11 2013 +0200
+++ b/Actor.cpp	Tue Feb 19 21:50:33 2013 +0200
@@ -3216,7 +3216,7 @@
   v3 = 60 * v1->pSpriteIDs[5];
   v1->uCurrentActionTime = 0;
   v1->uAIState = Dying;
-  v1->uCurrentActionAnimation = 5;
+  v1->uCurrentActionAnimation = ANIM_Dying;
   LOWORD(v3) = *(__int16 *)((char *)&v2->uAnimLength + v3);
   v1->sCurrentHP = 0;
   v1->uCurrentActionLength = 8 * v3;
@@ -4168,7 +4168,7 @@
   this->uActorRadius = 32;
   this->uActorHeight = 128;
   this->uAIState = Standing;
-  this->uCurrentActionAnimation = 0;
+  this->uCurrentActionAnimation = ANIM_Standing;
   this->uMovementSpeed = 200;
   this->uCarriedItemID = 0;
   this->uGroup = 0;