mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +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)
|
if (removed == 0)
|
||||||
throw std::runtime_error("Item to remove not found in container store");
|
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");
|
throw std::runtime_error("Not enough items in the stack to remove");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user