signed/unsigned comparison warning.

revert-6246b479
Mads Buvik Sandvei 1 year ago
parent fe0b640f85
commit 61f1f4a013

@ -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);

Loading…
Cancel
Save