aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-10-02 08:55:07 +0300
committerEugene Sandulenko2013-10-02 20:59:57 +0300
commit98a30990760c9135b72adab643ddbd4d06aa233d (patch)
tree03bcc8aca3b4055a605e50fcbc20d39290889d2c /engines
parent9e179fc42950dcf695546ef55175ec67e3205fd5 (diff)
downloadscummvm-rg350-98a30990760c9135b72adab643ddbd4d06aa233d.tar.gz
scummvm-rg350-98a30990760c9135b72adab643ddbd4d06aa233d.tar.bz2
scummvm-rg350-98a30990760c9135b72adab643ddbd4d06aa233d.zip
FULLPIPE: Implement MGM::getItemIndexById()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/motion.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 607cc3a390..ad24514b26 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -507,7 +507,9 @@ void MGM::rebuildTables(int objId) {
}
int MGM::getItemIndexById(int objId) {
- warning("STUB: MGM:getItemIndexById()");
+ for (uint i = 0; i < _items.size(); i++)
+ if (_items[i]->objId == objId)
+ return i;
return -1;
}