summaryrefslogtreecommitdiff
path: root/plugins/drybuckets.cpp
diff options
context:
space:
mode:
authorQuietust2012-01-31 10:55:38 -0600
committerQuietust2012-01-31 10:55:38 -0600
commit9afcea3debd7588e897eea21b33b8a86e9adcc4d (patch)
tree3db1c6e2a1613eef4d8ebac243b5353e18db654b /plugins/drybuckets.cpp
parenta82f4c913803038d20b4c92e65b53f9fea9555dc (diff)
downloaddfhack-9afcea3debd7588e897eea21b33b8a86e9adcc4d.tar.gz
dfhack-9afcea3debd7588e897eea21b33b8a86e9adcc4d.tar.bz2
dfhack-9afcea3debd7588e897eea21b33b8a86e9adcc4d.tar.xz
In all loops that iterate across a vector, use a size_t as the index
Diffstat (limited to 'plugins/drybuckets.cpp')
-rw-r--r--plugins/drybuckets.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/drybuckets.cpp b/plugins/drybuckets.cpp
index 582c7133..f3cdacdc 100644
--- a/plugins/drybuckets.cpp
+++ b/plugins/drybuckets.cpp
@@ -25,7 +25,7 @@ DFhackCExport command_result df_drybuckets (Core * c, vector <string> & paramete
CoreSuspender suspend(c);
int dried_total = 0;
- for (int i = 0; i < world->items.all.size(); i++)
+ for (size_t i = 0; i < world->items.all.size(); i++)
{
df::item *item = world->items.all[i];
if ((item->getType() == item_type::LIQUID_MISC) && (item->getMaterial() == builtin_mats::WATER))