diff options
author | Eugene Sandulenko | 2016-06-20 18:04:44 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 0567ac97074a9db4799838e0aa6296d269dc1632 (patch) | |
tree | f648d271fa155a41b94fb495963e65e2cd2f9fd5 | |
parent | 908bcf2065754411f3615b5f8eb505b6154e56fb (diff) | |
download | scummvm-rg350-0567ac97074a9db4799838e0aa6296d269dc1632.tar.gz scummvm-rg350-0567ac97074a9db4799838e0aa6296d269dc1632.tar.bz2 scummvm-rg350-0567ac97074a9db4799838e0aa6296d269dc1632.zip |
DIRECTOR: Lingo: Fix variable accessing
-rw-r--r-- | engines/director/lingo/lingo-funcs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-funcs.cpp b/engines/director/lingo/lingo-funcs.cpp index 8144270c56..cd399f7100 100644 --- a/engines/director/lingo/lingo-funcs.cpp +++ b/engines/director/lingo/lingo-funcs.cpp @@ -234,7 +234,7 @@ void Lingo::func_constpush() { void Lingo::func_varpush() { Datum d; Symbol *sym; - char *name = (char *)(*g_lingo->_currentScript)[g_lingo->_pc]; + char *name = (char *)&(*g_lingo->_currentScript)[g_lingo->_pc]; if (!g_lingo->_vars.contains(name)) { // Create variable if it was not defined sym = new Symbol; |