diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-13 00:20:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-13 00:20:16 +0300 |
commit | 59b2d1d51e2722029ca8fe36941dff2f0b1e5982 (patch) | |
tree | 50de9942f39eb4299d2d06e38e4ae30699215e1b /src/inventory.cpp | |
parent | 46e467c06869373ae38ec0bc04d6157096738b80 (diff) | |
download | plus-59b2d1d51e2722029ca8fe36941dff2f0b1e5982.tar.gz plus-59b2d1d51e2722029ca8fe36941dff2f0b1e5982.tar.bz2 plus-59b2d1d51e2722029ca8fe36941dff2f0b1e5982.tar.xz plus-59b2d1d51e2722029ca8fe36941dff2f0b1e5982.zip |
remove depricated stl feature.
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 53cdeb34c..61500fb7a 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -38,12 +38,13 @@ #include "debug.h" -struct SlotUsed final : public std::unary_function<Item*, bool> +struct SlotUsed final { bool operator()(const Item *const item) const { return item && item->mId >= 0 && item->mQuantity > 0; } + typedef Item *argument_type; }; Inventory::Inventory(const int type, const int size1) : |