[Scummvm-cvs-logs] scummvm master -> e474f695dfa693f9c0eb17f29c56589a4918c7f2

lordhoto lordhoto at gmail.com
Sun Jan 13 17:59:25 CET 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e474f695df TOON: Fix return value of saveGameState/loadGameState.


Commit: e474f695dfa693f9c0eb17f29c56589a4918c7f2
    https://github.com/scummvm/scummvm/commit/e474f695dfa693f9c0eb17f29c56589a4918c7f2
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2013-01-13T08:56:55-08:00

Commit Message:
TOON: Fix return value of saveGameState/loadGameState.

Formerly both returned an error, when the saving/loading succeeded, and
success when it didn't. This fixes an incorrect dialog appearing when saving
or loading via the GMM.

Changed paths:
    engines/toon/toon.h



diff --git a/engines/toon/toon.h b/engines/toon/toon.h
index d40c489..0ff3518 100644
--- a/engines/toon/toon.h
+++ b/engines/toon/toon.h
@@ -316,12 +316,11 @@ public:
 	}
 
 	Common::Error saveGameState(int slot, const Common::String &desc) {
-
-		return (saveGame(slot, desc) ? Common::kWritingFailed : Common::kNoError);
+		return (saveGame(slot, desc) ? Common::kNoError : Common::kWritingFailed);
 	}
 
 	Common::Error loadGameState(int slot) {
-		return (loadGame(slot) ? Common::kReadingFailed : Common::kNoError);
+		return (loadGame(slot) ? Common::kNoError : Common::kReadingFailed);
 	}
 
 	bool hasFeature(EngineFeature f) const {






More information about the Scummvm-git-logs mailing list