aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/frotz/processor.h')
-rw-r--r--engines/glk/frotz/processor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/glk/frotz/processor.h b/engines/glk/frotz/processor.h
index 83d24433cf..e992a78100 100644
--- a/engines/glk/frotz/processor.h
+++ b/engines/glk/frotz/processor.h
@@ -1734,7 +1734,10 @@ public:
/**
* Return the current program execution offset
*/
- uint getPC() const { return pcp - zmp; }
+ uint getPC() const {
+ assert(pcp);
+ return pcp - zmp;
+ }
/**
* Set the program execution offset