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