From dc0dbbe3404664c8fd796bba49c444eeb5d74c0b Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 8 May 2025 18:42:15 -0500 Subject: [PATCH] Update InventoryPouch.cs --- .../Saves/Substructures/Inventory/Pouch/InventoryPouch.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/Saves/Substructures/Inventory/Pouch/InventoryPouch.cs b/PKHeX.Core/Saves/Substructures/Inventory/Pouch/InventoryPouch.cs index 56162a00d..aa58e6be2 100644 --- a/PKHeX.Core/Saves/Substructures/Inventory/Pouch/InventoryPouch.cs +++ b/PKHeX.Core/Saves/Substructures/Inventory/Pouch/InventoryPouch.cs @@ -280,7 +280,8 @@ public bool IsValidItemAndCount(ITrainerInfo sav, int item, bool HasNew, bool Ha return false; } - count = GetSuggestedItemCount(sav, item, count); + if (count > 0) + count = GetSuggestedItemCount(sav, item, count); return true; }