From d859a9f420976d9edd7314e964d64dcaa7037f60 Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Mon, 16 Oct 2023 11:27:55 -0500 Subject: [PATCH] more adjustments to make gcc happy --- library/modules/Items.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/library/modules/Items.cpp b/library/modules/Items.cpp index cff4ff411..944334480 100644 --- a/library/modules/Items.cpp +++ b/library/modules/Items.cpp @@ -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(item); - if (tool) - return tool->subtype->container_capacity; + { + auto tool = virtual_cast(item); + if (tool) + return tool->subtype->container_capacity; + } + // fall through default: + ; // fall through to default exit } return 0; }