diff options
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/agos.cpp | 3 | ||||
-rw-r--r-- | engines/agos/detection.cpp | 2 | ||||
-rw-r--r-- | engines/agos/saveload.cpp | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp index 2ebc0e0206..ab2fe39d4e 100644 --- a/engines/agos/agos.cpp +++ b/engines/agos/agos.cpp @@ -894,8 +894,7 @@ AGOSEngine::~AGOSEngine() { delete _gameFile; _midi.close(); - if (_driver) - delete _driver; + delete _driver; AudioCD.stop(); diff --git a/engines/agos/detection.cpp b/engines/agos/detection.cpp index d4eaa03ca9..9484e17d8e 100644 --- a/engines/agos/detection.cpp +++ b/engines/agos/detection.cpp @@ -194,7 +194,7 @@ SaveStateList AgosMetaEngine::listSaves(const char *target) const { 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); diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp index dfd11a4514..603ac7ea92 100644 --- a/engines/agos/saveload.cpp +++ b/engines/agos/saveload.cpp @@ -49,7 +49,7 @@ int AGOSEngine::countSaveGames() { memset(marks, false, 256 * sizeof(bool)); //assume no savegames for this title filenames = _saveFileMan->listSavefiles(prefix); - 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 slot[0] = file->c_str()[file->size()-3]; slot[1] = file->c_str()[file->size()-2]; |