Browse Source

Use GetInventorySize in GetItemSizeOnSlot

pull/4459/head
ephphatha 4 years ago committed by Anders Jenbo
parent
commit
0adf0fb1f3
  1. 6
      Source/controls/plrctrls.cpp

6
Source/controls/plrctrls.cpp

@ -662,11 +662,7 @@ Size GetItemSizeOnSlot(int slot)
if (ii != 0) {
Item &item = MyPlayer->InvList[ii - 1];
if (!item.isEmpty()) {
auto size = GetInvItemSize(item._iCurs + CURSOR_FIRSTITEM);
size.width /= InventorySlotSizeInPixels.width;
size.height /= InventorySlotSizeInPixels.height;
return size;
return GetInventorySize(item);
}
}
}

Loading…
Cancel
Save