aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2009-12-04 17:42:32 +0000
committerMartin Kiewitz2009-12-04 17:42:32 +0000
commit4fb779dbaf85d93c776549cdc4903c5a671013a4 (patch)
tree5448c953cc1df10459f1cb4a6114ccc5967f5004 /engines/sci
parenta5f1808c83844c21a5e22543157fa341536b5406 (diff)
downloadscummvm-rg350-4fb779dbaf85d93c776549cdc4903c5a671013a4.tar.gz
scummvm-rg350-4fb779dbaf85d93c776549cdc4903c5a671013a4.tar.bz2
scummvm-rg350-4fb779dbaf85d93c776549cdc4903c5a671013a4.zip
SCI: Recreate SciEvent on loading saves
svn-id: r46253
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/savegame.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index 75637e09ef..90694cf84f 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -30,6 +30,7 @@
#include "graphics/thumbnail.h"
#include "sci/sci.h"
+#include "sci/event.h"
#ifdef INCLUDE_OLDGFX
#include "sci/gfx/menubar.h"
#include "sci/gfx/gfx_state_internal.h" // required for GfxPort, GfxContainer
@@ -767,6 +768,7 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {
// Create a new EngineState object
retval = new EngineState(s->resMan, s->_kernel, s->_voc, s->_segMan, s->_gui, s->_audio);
+ retval->_event = new SciEvent();
// Copy some old data
retval->gfx_state = s->gfx_state;