From 4559ca444daacfd02ebb05f1657148a2b4cf3d8b Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Wed, 20 Feb 2013 22:46:55 +0100 Subject: Introduced Script::Context This should allow to finally call functions to lua without having to care about working around situations where a lua call causes a c++ call which needs to call to lua again. Tested against the source of tales repository data. --- src/scripting/luautil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scripting/luautil.cpp') diff --git a/src/scripting/luautil.cpp b/src/scripting/luautil.cpp index f7b39e2..6210eda 100644 --- a/src/scripting/luautil.cpp +++ b/src/scripting/luautil.cpp @@ -267,7 +267,7 @@ MapComposite *checkCurrentMap(lua_State *s, Script *script /* = 0 */) if (!script) script = getScript(s); - MapComposite *mapComposite = script->getMap(); + MapComposite *mapComposite = script->getContext()->map; if (!mapComposite) luaL_error(s, "no current map"); -- cgit