diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:20:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:20:20 +0300 |
commit | 8fb2c062cd1c03f032b99f4a7e7663c0653ba837 (patch) | |
tree | 0bb3cd9a01f0158822ae58a0d56b8b1808cb9bbc /src/resources/inventory/inventory.cpp | |
parent | a9f6959a96395edc64ff57bf5ba1d75cca8e86c3 (diff) | |
download | plus-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.tar.gz plus-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.tar.bz2 plus-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.tar.xz plus-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.zip |
Add missing const in resources directory.
Diffstat (limited to 'src/resources/inventory/inventory.cpp')
-rw-r--r-- | src/resources/inventory/inventory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/inventory/inventory.cpp b/src/resources/inventory/inventory.cpp index f7f6dcaee..efcea0f55 100644 --- a/src/resources/inventory/inventory.cpp +++ b/src/resources/inventory/inventory.cpp @@ -229,7 +229,8 @@ bool Inventory::contains(const Item *const item) const int Inventory::getFreeSlot() const { - Item **const i = std::find_if(mItems, mItems + mSize, + Item *const *const i = std::find_if(mItems, + mItems + mSize, std::not1(SlotUsed())); return (i == mItems + mSize) ? -1 : CAST_S32(i - mItems); |