Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-11-05 12:02:13 +0000
committerStijn Buys <ingar@osirion.org>2013-11-05 12:02:13 +0000
commitcbb34af067be07ad28349e64d8670c97785c53c0 (patch)
tree98a0c7ae49b839be00809e9cfa21a5bb8b55c032 /src/core/inventory.h
parent1c9a974d65db676a61ae99e6e426e95671af056e (diff)
Added core:: method to find an item pointer in an inventory.
Diffstat (limited to 'src/core/inventory.h')
-rw-r--r--src/core/inventory.h5
1 files changed, 5 insertions, 0 deletions
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 --------------------------------------------------- */