fix signed/unsigned error

develop
Myk Taylor 2023-03-02 05:29:33 -08:00
parent 28599eb2bb
commit 982d6a995a
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 1 deletions

@ -765,7 +765,7 @@ static int getQualityFilter(lua_State *L) {
type, subtype, custom, index);
BuildingTypeKey key(type, subtype, custom);
auto &filters = get_item_filters(*out, key).getItemFilters();
if (filters.size() <= index)
if (index < 0 || filters.size() <= (size_t)index)
return 0;
auto &filter = filters[index];
map<string, int> ret;