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/info.cc')
-rw-r--r--src/core/info.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/info.cc b/src/core/info.cc
index cc1720e..2ff6669 100644
--- a/src/core/info.cc
+++ b/src/core/info.cc
@@ -243,6 +243,18 @@ void Info::print() const
Info::Registry Info::info_registry;
+Info *Info::find(const Info *info)
+{
+ if (!info)
+ return 0;
+
+ for (Registry::iterator it = info_registry.begin(); it != info_registry.end(); it++) {
+ if (info == (*it));
+ return *it;
+ }
+ return 0;
+}
+
Info *Info::find(unsigned int id)
{
if (!id)