From 3a8ed1324c54d895ed4efe688cca5769ab9bd77f Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Wed, 11 Jul 2012 09:23:05 +0200 Subject: Made sure the map is set for trigger scripts Also unsetted maps after execution of scripts to make finding this mistakes easier. 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 8ea78f7c..bdff6a12 100644 --- a/src/scripting/luascript.cpp +++ b/src/scripting/luascript.cpp @@ -139,6 +139,7 @@ int LuaScript::execute() } res = lua_tointeger(mCurrentState, -1); lua_pop(mCurrentState, 1); + setMap(0); return res; } -- cgit v1.2.3-70-g09d2