diff Player.cpp @ 1949:2f45768fcb7a

pActorBuffs[3] to pActorBuffs[ACTOR_BUFF_SHRINK]
author Grumpy7
date Fri, 25 Oct 2013 11:11:31 -0700
parents 140ca8123384
children 998e1babff31
line wrap: on
line diff
--- a/Player.cpp	Fri Oct 25 11:10:44 2013 -0700
+++ b/Player.cpp	Fri Oct 25 11:11:31 2013 -0700
@@ -7299,9 +7299,9 @@
     }
     pAudioPlayer->PlaySound(soundToPlay, PID(OBJECT_Player,a4 + 80), 0, -1, 0, 0, 0, 0);
     int dmgToReceive = actorPtr->_43B3E0_CalcDamage(dmgSource);
-    if ( actorPtr->pActorBuffs[3].uExpireTime > 0 )
+    if ( actorPtr->pActorBuffs[ACTOR_BUFF_SHRINK].uExpireTime > 0 )
     {
-      __int16 spellPower = actorPtr->pActorBuffs[3].uPower;
+      __int16 spellPower = actorPtr->pActorBuffs[ACTOR_BUFF_SHRINK].uPower;
       if ( spellPower )
         dmgToReceive /= (signed int)spellPower;
     }
@@ -7486,9 +7486,9 @@
             dmgToReceive >>= 1;
         }
       }
-      if ( actorPtr->pActorBuffs[3].uExpireTime > 0 )
+      if ( actorPtr->pActorBuffs[ACTOR_BUFF_SHRINK].uExpireTime > 0 )
       {
-        int spellPower = actorPtr->pActorBuffs[3].uPower;
+        int spellPower = actorPtr->pActorBuffs[ACTOR_BUFF_SHRINK].uPower;
         if ( spellPower )
           dmgToReceive /= (signed int)spellPower;
       }