From cbb34af067be07ad28349e64d8670c97785c53c0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 5 Nov 2013 12:02:13 +0000 Subject: Added core:: method to find an item pointer in an inventory. --- src/core/inventory.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/inventory.h') diff --git a/src/core/inventory.h b/src/core/inventory.h index 3c3adfa..4ea8350 100644 --- a/src/core/inventory.h +++ b/src/core/inventory.h @@ -101,6 +101,11 @@ public: * @brief search the inventory for a specific item id */ Item *find(const unsigned int id) const; + + /** + * @brief search the inventory for a specific item + */ + Item *find(Item *item) const; /* ---- mutators --------------------------------------------------- */ -- cgit v1.2.3