diff --git a/src/UI/InventoryMenu.cpp b/src/UI/InventoryMenu.cpp index 98bf49b..74ca3a7 100644 --- a/src/UI/InventoryMenu.cpp +++ b/src/UI/InventoryMenu.cpp @@ -219,6 +219,9 @@ namespace GUI { void refillItems(CPlayerState *playerState) { for (int i = 0; i < int(CPlayerState::EItemType::Max); i++) { auto itemType = static_cast(i); + if (itemType == CPlayerState::EItemType::CannonBall) { + continue; // otherwise the refill button always gives the player cannon ball + } u32 maxValue = CPlayerState::GetPowerUpMaxValue(itemType); playerState->ResetAndIncrPickUp(itemType, maxValue); }