aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo-codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/director/lingo/lingo-codegen.cpp')
-rw-r--r--engines/director/lingo/lingo-codegen.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/engines/director/lingo/lingo-codegen.cpp b/engines/director/lingo/lingo-codegen.cpp
index b5bc8014c1..ae6242867a 100644
--- a/engines/director/lingo/lingo-codegen.cpp
+++ b/engines/director/lingo/lingo-codegen.cpp
@@ -64,16 +64,6 @@ void Lingo::execute(int pc) {
}
}
-void Lingo::pushContext() {
- Context *con = new Context;
-
- _contexts.push_back(con);
-}
-
-void Lingo::popContext() {
- _contexts.pop_back();
-}
-
Symbol *Lingo::lookupVar(const char *name, bool create, bool putInLocalList) {
Symbol *sym;
@@ -93,7 +83,7 @@ Symbol *Lingo::lookupVar(const char *name, bool create, bool putInLocalList) {
}
if (putInLocalList)
- _localvars[name] = true;
+ (*_localvars)[name] = sym;
return sym;
}