aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova
diff options
context:
space:
mode:
Diffstat (limited to 'engines/supernova')
-rw-r--r--engines/supernova/supernova.cpp4
-rw-r--r--engines/supernova/supernova.h2
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];
}