aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz/mem.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-02-10 11:19:18 -0800
committerPaul Gilbert2019-02-10 11:19:18 -0800
commit0a08d2e18b202cc0167c5f9746c9707d5efe86ef (patch)
treec472b59e69e6347481c9289ae64eee0b29fb4aff /engines/glk/frotz/mem.h
parentdbfc657a2c305946483e60d8bd68bb40575fb3a4 (diff)
downloadscummvm-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/mem.h')
-rw-r--r--engines/glk/frotz/mem.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/glk/frotz/mem.h b/engines/glk/frotz/mem.h
index c58ef658e4..3a927e25b4 100644
--- a/engines/glk/frotz/mem.h
+++ b/engines/glk/frotz/mem.h
@@ -36,13 +36,15 @@ namespace Frotz {
#define SET_BYTE(addr,v) zmp[addr] = v
#define LOW_BYTE(addr,v) v = zmp[addr]
+typedef uint offset_t;
+
/**
* Stores undo information
*/
struct undo_struct {
undo_struct *next;
undo_struct *prev;
- long pc;
+ offset_t pc;
long diff_size;
zword frame_count;
zword stack_size;
@@ -150,6 +152,10 @@ public:
* Constructor
*/
Mem();
+
+ /**
+ * Destructor
+ */
virtual ~Mem() {}
/**