fix usage of squad equipment vector

develop
Myk Taylor 2023-02-24 15:50:56 -08:00
parent b8fdc985ec
commit 4bf0849d51
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 1 deletions

@ -1647,5 +1647,5 @@ bool Items::isSquadEquipment(df::item *item)
return false; return false;
auto &vec = plotinfo->equipment.items_assigned[item->getType()]; auto &vec = plotinfo->equipment.items_assigned[item->getType()];
return binsearch_index(vec, &df::item::id, item->id) >= 0; return binsearch_index(vec, item->id) >= 0;
} }