aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
authorPaul Gilbert2018-12-18 21:47:20 -0800
committerPaul Gilbert2018-12-18 21:47:20 -0800
commit9eda47aaa82fe39d6265dc01a6d580450a2c25aa (patch)
tree5b954928bd2cf818d6a12a9d1b75684a9f777219 /engines/glk
parent364d5d35c26712743ce74dd10aabc664dcceff9e (diff)
downloadscummvm-rg350-9eda47aaa82fe39d6265dc01a6d580450a2c25aa.tar.gz
scummvm-rg350-9eda47aaa82fe39d6265dc01a6d580450a2c25aa.tar.bz2
scummvm-rg350-9eda47aaa82fe39d6265dc01a6d580450a2c25aa.zip
GLK: FROTZ: Fix rerender after loading Beyond Zork savegames
Diffstat (limited to 'engines/glk')
-rw-r--r--engines/glk/frotz/processor_streams.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/glk/frotz/processor_streams.cpp b/engines/glk/frotz/processor_streams.cpp
index 11f7932a28..84872f11e4 100644
--- a/engines/glk/frotz/processor_streams.cpp
+++ b/engines/glk/frotz/processor_streams.cpp
@@ -589,10 +589,11 @@ void Processor::z_restore() {
success = loadGame().getCode() == Common::kNoError;
}
+ int result = success ? 2 : -1;
if (h_version <= V3)
- branch (success);
+ branch(result);
else
- store (success);
+ store (result);
}
void Processor::z_verify() {