Browse Source

Fix warnings in ui_item.h

pull/2411/head
obligaron 5 years ago committed by Anders Jenbo
parent
commit
91fe708e8f
  1. 2
      Source/DiabloUI/ui_item.h

2
Source/DiabloUI/ui_item.h

@ -313,7 +313,7 @@ typedef std::vector<std::unique_ptr<UiListItem>> vUiListItem;
class UiList : public UiItemBase {
public:
UiList(const vUiListItem &vItems, Sint16 x, Sint16 y, Uint16 item_width, Uint16 item_height, int flags = 0)
: UiItemBase(x, y, item_width, item_height * vItems.size(), flags)
: UiItemBase(x, y, item_width, static_cast<Uint16>(item_height * vItems.size()), flags)
{
m_type = UI_LIST;
for (auto &item : vItems)

Loading…
Cancel
Save