diff --git a/Source/DiabloUI/ui_item.h b/Source/DiabloUI/ui_item.h index 548078bf3..62ebf7f01 100644 --- a/Source/DiabloUI/ui_item.h +++ b/Source/DiabloUI/ui_item.h @@ -313,7 +313,7 @@ typedef std::vector> 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(item_height * vItems.size()), flags) { m_type = UI_LIST; for (auto &item : vItems)