mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-12 12:38:02 +00:00
silenced a warning
This commit is contained in:
parent
2af7f60488
commit
9f0dac00ec
@ -56,7 +56,7 @@ void InventoryItemModel::removeItem (const ItemStack& item, size_t count)
|
||||
|
||||
if (removed == 0)
|
||||
throw std::runtime_error("Item to remove not found in container store");
|
||||
else if (removed < count)
|
||||
else if (removed < static_cast<int> (count))
|
||||
throw std::runtime_error("Not enough items in the stack to remove");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user