From c858f33f61b44a1ee08a4adc2feb14fdaf6036d6 Mon Sep 17 00:00:00 2001 From: lethosor Date: Fri, 17 Jul 2020 00:00:57 -0400 Subject: [PATCH] reaction-gloves: fix warnings --- plugins/tweak/tweaks/reaction-gloves.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/tweak/tweaks/reaction-gloves.h b/plugins/tweak/tweaks/reaction-gloves.h index 82890239c..4f55f77b7 100644 --- a/plugins/tweak/tweaks/reaction-gloves.h +++ b/plugins/tweak/tweaks/reaction-gloves.h @@ -22,7 +22,7 @@ struct reaction_gloves_hook : df::reaction_product_itemst { // Examine creator unit's body plan, see how many hands it has // Count left hands and right hands, as well as "neutral" hands for compatibility int num_hands = 0, num_left = 0, num_right = 0; - for (int i = 0; i < unit->body.body_plan->body_parts.size(); i++) + for (size_t i = 0; i < unit->body.body_plan->body_parts.size(); i++) { df::body_part_raw *part = unit->body.body_plan->body_parts[i]; if (part->flags.is_set(df::body_part_raw_flags::GRASP)) @@ -57,7 +57,7 @@ struct reaction_gloves_hook : df::reaction_product_itemst { num_right *= quantity; // Iterate across the output gloves, set their handedness, then append them to the actual out_items list for DF - for (int i = 0; i < out_items_temp.size(); i++) + for (size_t i = 0; i < out_items_temp.size(); i++) { // Do left gloves first, then right gloves, then "neutral" ones last // This is important for the "createitem" plugin, which contains similar workaround logic @@ -76,4 +76,4 @@ struct reaction_gloves_hook : df::reaction_product_itemst { } }; -IMPLEMENT_VMETHOD_INTERPOSE(reaction_gloves_hook, produce); \ No newline at end of file +IMPLEMENT_VMETHOD_INTERPOSE(reaction_gloves_hook, produce);