diff options
author | Paul Gilbert | 2019-02-10 11:19:18 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-02-10 11:19:18 -0800 |
commit | 0a08d2e18b202cc0167c5f9746c9707d5efe86ef (patch) | |
tree | c472b59e69e6347481c9289ae64eee0b29fb4aff /engines/glk/frotz/processor.h | |
parent | dbfc657a2c305946483e60d8bd68bb40575fb3a4 (diff) | |
download | scummvm-rg350-0a08d2e18b202cc0167c5f9746c9707d5efe86ef.tar.gz scummvm-rg350-0a08d2e18b202cc0167c5f9746c9707d5efe86ef.tar.bz2 scummvm-rg350-0a08d2e18b202cc0167c5f9746c9707d5efe86ef.zip |
GLK: FROTZ: Fixes for saving and restoring in V6 games
Diffstat (limited to 'engines/glk/frotz/processor.h')
-rw-r--r-- | engines/glk/frotz/processor.h | 5 |
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 |