make gcc happy

develop
Myk Taylor 2023-02-08 14:16:11 -08:00
parent 4d4e94c449
commit 8bd9853597
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
2 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit cd5baf4ea82fead3883368da526ac2b606a6209b
Subproject commit eb58cda0f106c20776c273516f010ce21c45f89d

@ -564,14 +564,14 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) {
static void set_material_order() {
material_order.clear();
for (int i = 0; i < all_materials.size(); ++i) {
if (i == get_config_val(config, CONFIG_SILK_IDX))
for (size_t i = 0; i < all_materials.size(); ++i) {
if (i == (size_t)get_config_val(config, CONFIG_SILK_IDX))
material_order.push_back(M_SILK);
else if (i == get_config_val(config, CONFIG_CLOTH_IDX))
else if (i == (size_t)get_config_val(config, CONFIG_CLOTH_IDX))
material_order.push_back(M_CLOTH);
else if (i == get_config_val(config, CONFIG_YARN_IDX))
else if (i == (size_t)get_config_val(config, CONFIG_YARN_IDX))
material_order.push_back(M_YARN);
else if (i == get_config_val(config, CONFIG_LEATHER_IDX))
else if (i == (size_t)get_config_val(config, CONFIG_LEATHER_IDX))
material_order.push_back(M_LEATHER);
}
if (!material_order.size())