diff --git a/Assets/Scripts/Shop/Model/BuyModel.cs b/Assets/Scripts/Shop/Model/BuyModel.cs index 9096317..3997de5 100644 --- a/Assets/Scripts/Shop/Model/BuyModel.cs +++ b/Assets/Scripts/Shop/Model/BuyModel.cs @@ -18,8 +18,8 @@ public class BuyModel : ShopModel public override void ConfirmSelectedItem() { - inventory.RemoveItemByIndex(selectedItemIndex); // Before removing the item from the model's actual inventory OnRemove(GetSelectedItem()); // If there's a view subscribed, this will probably remove the item from it + inventory.RemoveItemByIndex(selectedItemIndex); // Before removing the item from the model's actual inventory SelectItemByIndex(selectedItemIndex >= inventory.GetItemCount() ? --selectedItemIndex : selectedItemIndex); }