diff options
-rw-r--r-- | engines/sci/gui/gui.cpp | 1 | ||||
-rw-r--r-- | engines/sci/gui/gui_animate.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index 17caa8b89c..4a6abd735c 100644 --- a/engines/sci/gui/gui.cpp +++ b/engines/sci/gui/gui.cpp @@ -68,6 +68,7 @@ SciGui::~SciGui() { void SciGui::resetEngineState(EngineState *s) { _s = s; _gfx->resetEngineState(s); + _animate->resetEngineState(s); } void SciGui::init(bool usesOldGfxFunctions) { diff --git a/engines/sci/gui/gui_animate.h b/engines/sci/gui/gui_animate.h index b312027665..36a23bc0ee 100644 --- a/engines/sci/gui/gui_animate.h +++ b/engines/sci/gui/gui_animate.h @@ -53,6 +53,9 @@ public: SciGuiAnimate(EngineState *state, SciGuiGfx *gfx, SciGuiScreen *screen, SciGuiPalette *palette); ~SciGuiAnimate(); + // FIXME: Don't store EngineState + void resetEngineState(EngineState *newState) { _s = newState; } + void disposeLastCast(); void invoke(List *list, int argc, reg_t *argv); void makeSortedList(List *list); |