diff options
author | Eugene Sandulenko | 2016-06-30 10:24:01 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 0b6d950729296c177ad502328fd5b5e3b0bb04c9 (patch) | |
tree | 2908aea7a91d22d8ffb2da8135ddc4ff4de4f300 /engines/director/lingo/lingo.cpp | |
parent | a279faf251f1703355b5d7dbaf2b935a25e21047 (diff) | |
download | scummvm-rg350-0b6d950729296c177ad502328fd5b5e3b0bb04c9.tar.gz scummvm-rg350-0b6d950729296c177ad502328fd5b5e3b0bb04c9.tar.bz2 scummvm-rg350-0b6d950729296c177ad502328fd5b5e3b0bb04c9.zip |
DIRECTOR: Lingo: Store and restore local variables in scope.
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index cbf0d9ba6c..accd9a113d 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -163,7 +163,11 @@ void Lingo::executeScript(ScriptType type, uint16 id) { _pc = 0; _returning = false; + _localvars = new SymbolHash; + execute(_pc); + + delete _localvars; } void Lingo::processEvent(LEvent event, int entityId) { |