1
0
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:
Marc Zinnschlag 2013-11-14 12:22:24 +01:00
parent 2af7f60488
commit 9f0dac00ec

View File

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