aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz/mem.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-01-06 14:00:53 -0800
committerPaul Gilbert2019-01-06 14:00:53 -0800
commit8515590b47ca297880df59f81f305b00b7c5384a (patch)
tree8f0cb140daa343637f5242339d46ed09cb5df33b /engines/glk/frotz/mem.h
parentfe96c942efb81c6d4c83161718c6e06518b4bf0a (diff)
downloadscummvm-rg350-8515590b47ca297880df59f81f305b00b7c5384a.tar.gz
scummvm-rg350-8515590b47ca297880df59f81f305b00b7c5384a.tar.bz2
scummvm-rg350-8515590b47ca297880df59f81f305b00b7c5384a.zip
GLK: FROTZ: Fix #10869 Crash initializing undo data
Diffstat (limited to 'engines/glk/frotz/mem.h')
-rw-r--r--engines/glk/frotz/mem.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/glk/frotz/mem.h b/engines/glk/frotz/mem.h
index a632bc6e63..c58ef658e4 100644
--- a/engines/glk/frotz/mem.h
+++ b/engines/glk/frotz/mem.h
@@ -72,14 +72,19 @@ private:
void initializeStoryFile();
/**
- * Setup undo data
+ * Handles loading the game header
*/
- void initializeUndo();
+ void loadGameHeader();
/**
- * Handles loading the game header
+ * Initializes memory and loads the story data
*/
- void loadGameHeader();
+ void loadMemory();
+
+ /**
+ * Setup undo data
+ */
+ void initializeUndo();
protected:
/**
* Read a value from the header extension (former mouse table).