diff Actor.cpp @ 1948:7fd4bfa175fd

pActorBuffs[2] to pActorBuffs[ACTOR_BUFF_SUMMONED]
author Grumpy7
date Fri, 25 Oct 2013 11:10:44 -0700
parents 33f3103b062b
children 2f45768fcb7a
line wrap: on
line diff
--- a/Actor.cpp	Fri Oct 25 11:09:52 2013 -0700
+++ b/Actor.cpp	Fri Oct 25 11:10:44 2013 -0700
@@ -2468,7 +2468,7 @@
     if ( thisActor->uAttributes & 0x80000
       && thisActor->pActorBuffs[12].uExpireTime <= 0
       && thisActor->pActorBuffs[ACTOR_BUFF_CHARM].uExpireTime <= 0
-      && thisActor->pActorBuffs[2].uExpireTime <= 0 )
+      && thisActor->pActorBuffs[ACTOR_BUFF_SUMMONED].uExpireTime <= 0 )
       v14 = 4;
     else
       v14 = thisActor->GetActorsRelation(0);
@@ -3060,7 +3060,7 @@
 		// not sure
 		else if ( pActor->pActorBuffs[ACTOR_BUFF_CHARM].uExpireTime < 0 )
 			pActor->pMonsterInfo.uHostilityType = pMonsterStats->pInfos[pActor->pMonsterInfo.uID].uHostilityType;
-		if ( pActor->pActorBuffs[2].uExpireTime < 0 )
+		if ( pActor->pActorBuffs[ACTOR_BUFF_SUMMONED].uExpireTime < 0 )
 		{
 			pActor->uAIState = Removed;
 			continue;