aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/detection.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-15 08:39:03 +0000
committerFilippos Karapetis2010-06-15 08:39:03 +0000
commitba3c43498b12b4c5855030bea7ab9e613c55d4ac (patch)
tree0749ff0b848a4761a3ddae38955a63bff6363a84 /engines/sci/detection.cpp
parent0ad3bedf9880b51e40459df4e33547bf234eeb4f (diff)
downloadscummvm-rg350-ba3c43498b12b4c5855030bea7ab9e613c55d4ac.tar.gz
scummvm-rg350-ba3c43498b12b4c5855030bea7ab9e613c55d4ac.tar.bz2
scummvm-rg350-ba3c43498b12b4c5855030bea7ab9e613c55d4ac.zip
- Swapped the return value of gamestate_save (false = failed, true = succeeded)
- Removed some duplicate code inside Console::cmdSaveGame() svn-id: r49688
Diffstat (limited to 'engines/sci/detection.cpp')
-rw-r--r--engines/sci/detection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp
index 7f0a27c14f..b402f7cc0b 100644
--- a/engines/sci/detection.cpp
+++ b/engines/sci/detection.cpp
@@ -659,7 +659,7 @@ Common::Error SciEngine::saveGameState(int slot, const char *desc) {
return Common::kWritingFailed;
}
- if (gamestate_save(_gamestate, out, desc, version)) {
+ if (!gamestate_save(_gamestate, out, desc, version)) {
warning("Saving the game state to '%s' failed", fileName.c_str());
return Common::kWritingFailed;
} else {