1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

signed/unsigned comparison warning.

This commit is contained in:
Mads Buvik Sandvei 2023-07-17 20:41:33 +02:00
parent fe0b640f85
commit 61f1f4a013

View File

@ -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<size_t>(item.mBase.getRefData().getCount()) <= count)
{
// We are moving the full stack
ret = otherModel->addItem(item, count, allowAutoEquip);