From 59b2d1d51e2722029ca8fe36941dff2f0b1e5982 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 13 Oct 2013 00:20:16 +0300 Subject: remove depricated stl feature. --- src/inventory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 +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) : -- cgit v1.2.3-60-g2f50