aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz/processor_streams.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/frotz/processor_streams.cpp')
-rw-r--r--engines/glk/frotz/processor_streams.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/glk/frotz/processor_streams.cpp b/engines/glk/frotz/processor_streams.cpp
index 067708fb23..aedec2f6cf 100644
--- a/engines/glk/frotz/processor_streams.cpp
+++ b/engines/glk/frotz/processor_streams.cpp
@@ -535,9 +535,10 @@ void Processor::z_restart() {
_frameCount = 0;
if (h_version != V6 && h_version != V9) {
- long pc = (long)h_start_pc;
+ offset_t pc = (offset_t)h_start_pc;
SET_PC(pc);
} else {
+ SET_PC(0);
call(h_start_pc, 0, nullptr, 0);
}