diff options
author | Paul Gilbert | 2018-11-17 19:04:06 -0800 |
---|---|---|
committer | Paul Gilbert | 2018-12-08 19:05:59 -0800 |
commit | 3b906cb2bb302d9256d07cb462f445af16c7d129 (patch) | |
tree | 0928d07e9f923953401ff82eb488705d59878d9b /engines/glk/glk.cpp | |
parent | b05a16a0ad0dcc2881aeda81e0d1a84a752eccab (diff) | |
download | scummvm-rg350-3b906cb2bb302d9256d07cb462f445af16c7d129.tar.gz scummvm-rg350-3b906cb2bb302d9256d07cb462f445af16c7d129.tar.bz2 scummvm-rg350-3b906cb2bb302d9256d07cb462f445af16c7d129.zip |
GLK: Fixes for combined loading/saving code
Diffstat (limited to 'engines/glk/glk.cpp')
-rw-r--r-- | engines/glk/glk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/glk.cpp b/engines/glk/glk.cpp index a3cd167ae7..9488c6684a 100644 --- a/engines/glk/glk.cpp +++ b/engines/glk/glk.cpp @@ -149,7 +149,7 @@ Common::Error GlkEngine::loadGameState(int slot) { if (file == nullptr) return Common::kReadingFailed; - Common::Error result = saveGameData(file); + Common::Error result = loadGameData(file); file->close(); return result; @@ -163,7 +163,7 @@ Common::Error GlkEngine::saveGameState(int slot, const Common::String &desc) { if (file == nullptr) return Common::kWritingFailed; - Common::Error result = loadGameData(file); + Common::Error result = saveGameData(file); file->close(); return result; |