From 4f72085077e72e88a45f55ef7949096edde76664 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Alves Cruz Date: Sat, 11 Jan 2025 18:36:08 -0300 Subject: [PATCH] fix: empty fluid containers load --- src/items/item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items/item.cpp b/src/items/item.cpp index 14af2cfb47f..71bcd1c765e 100644 --- a/src/items/item.cpp +++ b/src/items/item.cpp @@ -278,7 +278,7 @@ Item::Item(const uint16_t itemId, uint16_t itemCount /*= 0*/) : const ItemType &it = items[id]; const auto itemCharges = it.charges; if (it.isFluidContainer() || it.isSplash()) { - const auto fluidType = std::clamp(itemCount, 1, FLUID_INK); + const auto fluidType = std::clamp(itemCount, 0, magic_enum::enum_count()); setAttribute(ItemAttribute_t::FLUIDTYPE, fluidType); } else if (it.stackable) { if (itemCount != 0) {