From fbf0b59ff191ee60cd22480b0d2d589f565cb4a1 Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Sun, 12 Jun 2022 10:56:01 -0700 Subject: [PATCH] Fix item getter for moving items This fixes an issue where the item would get overwritten and would effectively fetch a "random" item in the inventory to move instead of the requested one. --- dGame/dComponents/InventoryComponent.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/dGame/dComponents/InventoryComponent.cpp b/dGame/dComponents/InventoryComponent.cpp index 8c5ec269..22b86f17 100644 --- a/dGame/dComponents/InventoryComponent.cpp +++ b/dGame/dComponents/InventoryComponent.cpp @@ -353,8 +353,6 @@ void InventoryComponent::MoveItemToInventory(Item* item, const eInventoryType in while (left > 0) { - item = origin->FindItemByLot(lot, ignoreEquipped); - if (item == nullptr) { item = origin->FindItemByLot(lot, false);