diff options
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index 4b9a22739..9aff286ff 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -46,7 +46,8 @@ struct SlotUsed : public std::unary_function<Item*, bool> Inventory::Inventory(int type, int size): mType(type), - mSize(size == -1 ? Net::getInventoryHandler()->getSize(type) + mSize(size == -1 ? static_cast<unsigned>( + Net::getInventoryHandler()->getSize(type)) : static_cast<unsigned>(size)), mUsed(0) { |