From 05f3249e17121dc79e447b878cbd54e4d51dcdef Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Fri, 13 Jul 2012 16:20:26 +0200 Subject: Fixed the atinit function Previously each map had its own scope. They got merged now but the atinit function was forgotten to adapt. Reviewed-by: bjorn. --- src/scripting/luascript.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/scripting/luascript.cpp') diff --git a/src/scripting/luascript.cpp b/src/scripting/luascript.cpp index bdff6a12..e2b127f7 100644 --- a/src/scripting/luascript.cpp +++ b/src/scripting/luascript.cpp @@ -234,6 +234,7 @@ void LuaScript::load(const char *prog, const char *name) << lua_tostring(mRootState, -1)); lua_pop(mRootState, 1); } + setMap(0); } void LuaScript::processDeathEvent(Being *entity) -- cgit v1.2.3-70-g09d2