Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/slots.cc')
-rw-r--r--src/core/slots.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/slots.cc b/src/core/slots.cc
index 9bf557f..12f6208 100644
--- a/src/core/slots.cc
+++ b/src/core/slots.cc
@@ -41,6 +41,19 @@ void Slots::clear()
slots_container.clear();
}
+Slot *Slots::find(Item *item)
+{
+ for (iterator it = slots_container.begin(); it != slots_container.end(); ++it)
+ {
+ if ((*it)->item() == item) {
+ return (*it);
+ }
+ }
+
+ return 0;
+
+}
+
} // namespace core