aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2011-04-19 21:33:56 +1000
committerPaul Gilbert2011-04-19 21:33:56 +1000
commitb7c9bf4b3306cd8006bc312bbb06ee9d491fa265 (patch)
tree56b69e9f4e41d04861689739a48d2ea143a06ed0 /engines
parent95b4713ffaf3be9e31bf54cad71c76aa637de510 (diff)
downloadscummvm-rg350-b7c9bf4b3306cd8006bc312bbb06ee9d491fa265.tar.gz
scummvm-rg350-b7c9bf4b3306cd8006bc312bbb06ee9d491fa265.tar.bz2
scummvm-rg350-b7c9bf4b3306cd8006bc312bbb06ee9d491fa265.zip
TSAGE: Simplified the new Saver::getObjectCount method
Diffstat (limited to 'engines')
-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();
}
/**