fix signed unsigned compare

develop
Myk Taylor 2023-02-22 08:34:55 -08:00
parent 097e955796
commit 60de4619a2
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

@ -547,7 +547,7 @@ static int scanAvailableItems(color_ostream &out, df::building_type type, int16_
BuildingTypeKey key(type, subtype, custom); BuildingTypeKey key(type, subtype, custom);
HeatSafety heat = get_heat_safety_filter(key); HeatSafety heat = get_heat_safety_filter(key);
auto &job_items = get_job_items(out, key); auto &job_items = get_job_items(out, key);
if (job_items.size() <= index) if (index < 0 || job_items.size() <= (size_t)index)
return 0; return 0;
auto &item_filters = get_item_filters(out, key); auto &item_filters = get_item_filters(out, key);