diff CastSpellInfo.cpp @ 2276:e2433db49428

ActorHasItems
author Ritor1
date Fri, 14 Mar 2014 10:47:22 +0600
parents aff7a7b072b7
children 4c3f91554be8
line wrap: on
line diff
--- a/CastSpellInfo.cpp	Fri Mar 14 09:32:42 2014 +0600
+++ b/CastSpellInfo.cpp	Fri Mar 14 10:47:22 2014 +0600
@@ -2145,8 +2145,8 @@
           if ( !(pActors[mon_id].uAttributes & 0x800000) )
             pActors[mon_id].SetRandomGoldIfTheresNoItem();
           int gold_num = 0;
-          if ( pItemsTable->pItems[pActors[mon_id].array_000234[3].uItemID].uEquipType == EQUIP_GOLD )
-            gold_num = pActors[mon_id].array_000234[3].uSpecEnchantmentType;
+          if ( pItemsTable->pItems[pActors[mon_id].ActorHasItems[3].uItemID].uEquipType == EQUIP_GOLD )
+            gold_num = pActors[mon_id].ActorHasItems[3].uSpecEnchantmentType;
           ItemGen item;
           item.Reset();
           if (pActors[mon_id].uCarriedItemID)
@@ -2155,9 +2155,9 @@
           {
             for ( uint i = 0; i < 4; ++i )
             {
-              if ( pActors[mon_id].array_000234[i].uItemID > 0 && pItemsTable->pItems[pActors[mon_id].array_000234[i].uItemID].uEquipType != EQUIP_GOLD )
+              if ( pActors[mon_id].ActorHasItems[i].uItemID > 0 && pItemsTable->pItems[pActors[mon_id].ActorHasItems[i].uItemID].uEquipType != EQUIP_GOLD )
               {
-                memcpy(&item, &pActors[mon_id].array_000234[i], sizeof(item));
+                memcpy(&item, &pActors[mon_id].ActorHasItems[i], sizeof(item));
                 spell_level = v723;
               }
             }