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 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) : |