From 0567ac97074a9db4799838e0aa6296d269dc1632 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 20 Jun 2016 18:04:44 +0200 Subject: DIRECTOR: Lingo: Fix variable accessing --- engines/director/lingo/lingo-funcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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; -- cgit v1.2.3