Merge pull request #578 Fix Selling "random" item

Address issue with selling/moving items grabbing a "random" item
This commit is contained in:
David Markowitz 2022-06-12 11:43:36 -07:00 committed by GitHub
commit 7af248feeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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