diff Chest.cpp @ 1828:35c1e4ff6ba7

party_finds_gold to Party::PartyFindsGold, cleaned up, moved Level/Decoration.h reference out of Indoor.h
author Grumpy7
date Fri, 11 Oct 2013 07:04:19 +0200
parents 8251e59fd7c1
children c1c74df0a33e
line wrap: on
line diff
--- a/Chest.cpp	Fri Oct 11 05:49:39 2013 +0200
+++ b/Chest.cpp	Fri Oct 11 07:04:19 2013 +0200
@@ -27,6 +27,7 @@
 #include "SpriteObject.h"
 #include "Mouse.h"
 #include "Viewport.h"
+#include "Level/Decoration.h"
 
 size_t uNumChests; // idb
 struct ChestList *pChestList;
@@ -835,7 +836,7 @@
       v4 = pChests[chest_id].pInventoryIndices[v3] - 1;
       if ( pChests[chest_id].igChestItems[v4].GetItemEquipType() == EQUIP_GOLD )
       {
-        party_finds_gold(pChests[chest_id].igChestItems[v4].uSpecEnchantmentType, 0); 
+        pParty->PartyFindsGold(pChests[chest_id].igChestItems[v4].uSpecEnchantmentType, 0); 
         viewparams->bRedrawGameUI = 1;
       }
       else