From f4792bc06f21335fc2d1171d937ea7645ca0c253 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Mar 2011 22:13:37 +0200 Subject: Fix most conversions except manaserv net code and some other code. --- src/inventory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index 555117638..e410a36ed 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -160,7 +160,8 @@ int Inventory::getFreeSlot() const { Item **i = std::find_if(mItems, mItems + mSize, std::not1(SlotUsed())); - return (i == mItems + static_cast(mSize)) ? -1 : (i - mItems); + return (i == mItems + static_cast(mSize)) ? -1 + : static_cast(i - mItems); } int Inventory::getLastUsedSlot() const -- cgit v1.2.3-70-g09d2