summaryrefslogtreecommitdiff
path: root/plugins/cleanowned.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-10-25 04:48:06 +0200
committerPetr Mrázek2011-10-25 04:48:06 +0200
commit04495a304cc28f75764880ad1c704f6a3922c970 (patch)
tree89c9526a0275ead2372729dfb8f00945b9709c19 /plugins/cleanowned.cpp
parent452ddd3e2cbafe2ab7209d5d77ef155f9badbd55 (diff)
downloaddfhack-04495a304cc28f75764880ad1c704f6a3922c970.tar.gz
dfhack-04495a304cc28f75764880ad1c704f6a3922c970.tar.bz2
dfhack-04495a304cc28f75764880ad1c704f6a3922c970.tar.xz
Kill item variable accessors. YES.
Diffstat (limited to 'plugins/cleanowned.cpp')
-rw-r--r--plugins/cleanowned.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/cleanowned.cpp b/plugins/cleanowned.cpp
index 390785fb..d3c7cc89 100644
--- a/plugins/cleanowned.cpp
+++ b/plugins/cleanowned.cpp
@@ -99,7 +99,7 @@ DFhackCExport command_result df_cleanowned (Core * c, vector <string> & paramete
ok &= Creatures->Start(num_creatures);
ok &= Tran->Start();
- vector<t_item *> p_items;
+ vector<df_item *> p_items;
ok &= Items->readItemVector(p_items);
if(!ok)
{
@@ -111,7 +111,7 @@ DFhackCExport command_result df_cleanowned (Core * c, vector <string> & paramete
for (std::size_t i=0; i < p_items.size(); i++)
{
- t_item * curItem = p_items[i];
+ df_item * curItem = p_items[i];
DFHack::dfh_item itm;
Items->readItem(curItem, itm);
@@ -132,7 +132,7 @@ DFhackCExport command_result df_cleanowned (Core * c, vector <string> & paramete
}
}
- std::string name = Items->getItemClass(itm.matdesc.itemType);
+ std::string name = Items->getItemClass(itm);
if (itm.base->flags.rotten)
{