aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}