From 61f1f4a013cc189e88189e5f22a505293d546f4a Mon Sep 17 00:00:00 2001 From: Mads Buvik Sandvei Date: Mon, 17 Jul 2023 20:41:33 +0200 Subject: [PATCH] signed/unsigned comparison warning. --- apps/openmw/mwgui/itemmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);