diff options
author | Strangerke | 2017-10-14 23:26:32 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:34 +0000 |
commit | f0d139d5192324f903ef49dd0d958d95af284122 (patch) | |
tree | f4e56c094924940e7bfa948dc13c0aba524c6777 | |
parent | c3241c7c4215c1ef8fa9305b2663a92bf2868834 (diff) | |
download | scummvm-rg350-f0d139d5192324f903ef49dd0d958d95af284122.tar.gz scummvm-rg350-f0d139d5192324f903ef49dd0d958d95af284122.tar.bz2 scummvm-rg350-f0d139d5192324f903ef49dd0d958d95af284122.zip |
SUPERNOVA: Fix some warnings
-rw-r--r-- | engines/supernova/supernova.cpp | 4 | ||||
-rw-r--r-- | engines/supernova/supernova.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index 31ca4689c4..fc011b27e3 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -900,7 +900,7 @@ bool SupernovaEngine::loadGame(int slot) { if (saveHeader != SAVEGAME_HEADER) { warning("No header found in '%s'", filename.c_str()); delete savefile; - return Common::kUnknownError; + return false; //Common::kUnknownError } byte saveVersion = savefile->readByte(); @@ -908,7 +908,7 @@ bool SupernovaEngine::loadGame(int slot) { if (saveVersion > SAVEGAME_VERSION || saveVersion == 1) { warning("Save game version %i not supported", saveVersion); delete savefile; - return Common::kUnknownError; + return false; //Common::kUnknownError; } int descriptionSize = savefile->readSint16LE(); diff --git a/engines/supernova/supernova.h b/engines/supernova/supernova.h index 756c846301..70df62f282 100644 --- a/engines/supernova/supernova.h +++ b/engines/supernova/supernova.h @@ -150,7 +150,7 @@ public: bool saveGame(int slot, const Common::String &description); const Common::String &getGameString(int idx) const { - if (idx < 0 || idx >= _gameStrings.size()) + if (idx < 0 || idx >= (int)_gameStrings.size()) return _nullString; return _gameStrings[idx]; } |