aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/tsage/saveload.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/tsage/saveload.cpp b/engines/tsage/saveload.cpp
index 73c9d02cb5..d9ae5a1c43 100644
--- a/engines/tsage/saveload.cpp
+++ b/engines/tsage/saveload.cpp
@@ -350,12 +350,7 @@ int Saver::blockIndexOf(SavedObject *p) {
* Returns the number of objects in the object list registry
*/
int Saver::getObjectCount() const {
- int count = 0;
- Common::List<SavedObject *>::const_iterator i;
-
- for (i = _objList.begin(); i != _objList.end(); ++i, ++count)
- ;
- return count;
+ return _objList.size();
}
/**