Core/Items: Fixes being able to add more items then backpack can hold.

This commit is contained in:
hondacrx
2021-02-10 12:28:48 -05:00
parent f48abc3191
commit f254e9417c
+1 -1
View File
@@ -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;