diff options
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index a7adc2289..18ef19409 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -39,14 +39,17 @@ #include "debug.h" -struct SlotUsed final +namespace { - bool operator()(const Item *const item) const + struct SlotUsed final { - return item && item->mId >= 0 && item->mQuantity > 0; - } - typedef Item *argument_type; -}; + bool operator()(const Item *const item) const + { + return item && item->mId >= 0 && item->mQuantity > 0; + } + typedef Item *argument_type; + }; +} // namespace Inventory::Inventory(const int type, const int size1) : mInventoryListeners(), |