more adjustments to make gcc happy

develop
Kelly Kinkade 2023-10-16 11:27:55 -05:00
parent 74dffc5f52
commit d859a9f420
1 changed files with 7 additions and 3 deletions

@ -2314,10 +2314,14 @@ int32_t Items::getCapacity(df::item* item)
case df::enums::item_type::QUIVER:
return 1200;
case df::enums::item_type::TOOL:
{
auto tool = virtual_cast<df::item_toolst>(item);
if (tool)
return tool->subtype->container_capacity;
}
// fall through
default:
; // fall through to default exit
}
return 0;
}