diff --git a/apps/openmw/mwgui/itemmodel.cpp b/apps/openmw/mwgui/itemmodel.cpp index 03bec62e7a..fce3e68e78 100644 --- a/apps/openmw/mwgui/itemmodel.cpp +++ b/apps/openmw/mwgui/itemmodel.cpp @@ -61,7 +61,7 @@ namespace MWGui MWWorld::Ptr ItemModel::moveItem(const ItemStack& item, size_t count, ItemModel* otherModel, bool allowAutoEquip) { MWWorld::Ptr ret = MWWorld::Ptr(); - if (item.mBase.getRefData().getCount() <= count) + if (static_cast(item.mBase.getRefData().getCount()) <= count) { // We are moving the full stack ret = otherModel->addItem(item, count, allowAutoEquip);