diff --git a/Source/inv.cpp b/Source/inv.cpp index 02384c43bc4..6f04e6e4a9f 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -1297,20 +1297,12 @@ bool AutoPlaceItemInInventory(Player &player, const Item &item, bool persistItem } if (itemSize.height == 2) { - for (int x = 10 - itemSize.width; x >= 0; x -= itemSize.width) { + for (int x = 10 - itemSize.width; x >= 0; x--) { for (int y = 0; y < 3; y++) { if (AutoPlaceItemInInventorySlot(player, 10 * y + x, item, persistItem, sendNetworkMessage)) return true; } } - if (itemSize.width == 2) { - for (int x = 7; x >= 0; x -= 2) { - for (int y = 0; y < 3; y++) { - if (AutoPlaceItemInInventorySlot(player, 10 * y + x, item, persistItem, sendNetworkMessage)) - return true; - } - } - } return false; }