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.
This commit is contained in:
Johannes Schickel 2013-01-13 17:56:55 +01:00
parent 31aec8c581
commit e474f695df

View File

@ -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 {