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.
This commit is contained in:
EmosewaMC 2022-06-12 10:56:01 -07:00
parent d8cde40b49
commit fbf0b59ff1

View File

@ -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);