From 331072cdcfc114b2e4cd43638256326e8998e10e Mon Sep 17 00:00:00 2001 From: staphen Date: Fri, 25 Feb 2022 17:32:22 -0500 Subject: [PATCH] Persist the placed item in AutoPlaceItemInInventorySlot() --- Source/inv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index 78bfaf2f5..075ea5c41 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -1503,7 +1503,7 @@ bool AutoPlaceItemInInventorySlot(Player &player, int slotIndex, const Item &ite } if (persistItem) { - player.InvList[player._pNumInv] = player.HoldItem; + player.InvList[player._pNumInv] = item; player._pNumInv++; AddItemToInvGrid(player, slotIndex, player._pNumInv, itemSize);