aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/detection.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-10-26 20:07:37 +0000
committerJohannes Schickel2009-10-26 20:07:37 +0000
commita30b8f0bdc54ac2336535165356840365b02d4d4 (patch)
tree22ff743740b8be222e9583163c14816389c0fbd9 /engines/kyra/detection.cpp
parent939d8d1a373a9c4dc0feb780f57894296acf4148 (diff)
downloadscummvm-rg350-a30b8f0bdc54ac2336535165356840365b02d4d4.tar.gz
scummvm-rg350-a30b8f0bdc54ac2336535165356840365b02d4d4.tar.bz2
scummvm-rg350-a30b8f0bdc54ac2336535165356840365b02d4d4.zip
- Fix some missing initialization warnings from cppcheck
- Fix two invalid memory accesses reported by cppcheck svn-id: r45414
Diffstat (limited to 'engines/kyra/detection.cpp')
-rw-r--r--engines/kyra/detection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/detection.cpp b/engines/kyra/detection.cpp
index 93845c7c09..002f9dee09 100644
--- a/engines/kyra/detection.cpp
+++ b/engines/kyra/detection.cpp
@@ -1326,7 +1326,7 @@ SaveStateList KyraMetaEngine::listSaves(const char *target) const {
Common::sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
SaveStateList saveList;
- for (Common::StringList::const_iterator file = filenames.begin(); file != filenames.end(); file++) {
+ for (Common::StringList::const_iterator file = filenames.begin(); file != filenames.end(); ++file) {
// Obtain the last 3 digits of the filename, since they correspond to the save slot
int slotNum = atoi(file->c_str() + file->size() - 3);