aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-23 20:59:47 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commitc7a632ae2ed6a11500bc77b53540bb7ea23cb0d1 (patch)
treea3189391ab9dd004bd782c39b4e740c668e58a31
parent5b9e1a53ad4c2baca32dbb3fce22230cc7e8bc40 (diff)
downloadscummvm-rg350-c7a632ae2ed6a11500bc77b53540bb7ea23cb0d1.tar.gz
scummvm-rg350-c7a632ae2ed6a11500bc77b53540bb7ea23cb0d1.tar.bz2
scummvm-rg350-c7a632ae2ed6a11500bc77b53540bb7ea23cb0d1.zip
GLK: FROTZ: Fix initialization of undo data
-rw-r--r--engines/glk/frotz/mem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/glk/frotz/mem.cpp b/engines/glk/frotz/mem.cpp
index 19d2c3da3d..0665eea86f 100644
--- a/engines/glk/frotz/mem.cpp
+++ b/engines/glk/frotz/mem.cpp
@@ -35,8 +35,8 @@ Mem::Mem() : story_fp(nullptr), story_size(0), first_undo(nullptr), last_undo(nu
void Mem::initialize() {
initializeStoryFile();
- initializeUndo();
loadGameHeader();
+ initializeUndo();
// Allocate memory for story data
if ((zmp = (zbyte *)realloc(zmp, story_size)) == nullptr)