diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-18 22:13:37 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-18 22:13:37 +0200 |
commit | f4792bc06f21335fc2d1171d937ea7645ca0c253 (patch) | |
tree | c7b11cf81f254f5b9ed2f5dbfe127649abc7545a /src/inventory.cpp | |
parent | f98d003e354a1792117b7cbc771d1dd91475a156 (diff) | |
download | manaverse-f4792bc06f21335fc2d1171d937ea7645ca0c253.tar.gz manaverse-f4792bc06f21335fc2d1171d937ea7645ca0c253.tar.bz2 manaverse-f4792bc06f21335fc2d1171d937ea7645ca0c253.tar.xz manaverse-f4792bc06f21335fc2d1171d937ea7645ca0c253.zip |
Fix most conversions except manaserv net code and some other code.
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 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<int>(mSize)) ? -1 : (i - mItems); + return (i == mItems + static_cast<int>(mSize)) ? -1 + : static_cast<int>(i - mItems); } int Inventory::getLastUsedSlot() const |