From f254e9417c79599b03935292f24f664b76212790 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 10 Feb 2021 12:28:48 -0500 Subject: [PATCH] Core/Items: Fixes being able to add more items then backpack can hold. --- Source/Game/Entities/Player/Player.Items.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Entities/Player/Player.Items.cs b/Source/Game/Entities/Player/Player.Items.cs index 470acb3ed..d4ea8984d 100644 --- a/Source/Game/Entities/Player/Player.Items.cs +++ b/Source/Game/Entities/Player/Player.Items.cs @@ -878,7 +878,7 @@ namespace Game.Entities (pProto.GetBonding() == ItemBondingType.None || pProto.GetBonding() == ItemBondingType.OnAcquire)) searchSlotStart = InventorySlots.BagStart; - res = CanStoreItem_InInventorySlots(searchSlotStart, InventorySlots.ItemEnd, dest, pProto, ref count, false, pItem, bag, slot); + res = CanStoreItem_InInventorySlots(searchSlotStart, inventoryEnd, dest, pProto, ref count, false, pItem, bag, slot); if (res != InventoryResult.Ok) { no_space_count = count + no_similar_count;