diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-07-11 09:23:05 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-07-11 10:29:34 +0200 |
commit | 3a8ed1324c54d895ed4efe688cca5769ab9bd77f (patch) | |
tree | 1568b1db84eb4068e5096fd6925967074c700c8a /src/scripting | |
parent | e30e6b688d08e37735643f2f99f3b9ed16f025d2 (diff) | |
download | manaserv-3a8ed1324c54d895ed4efe688cca5769ab9bd77f.tar.gz manaserv-3a8ed1324c54d895ed4efe688cca5769ab9bd77f.tar.bz2 manaserv-3a8ed1324c54d895ed4efe688cca5769ab9bd77f.tar.xz manaserv-3a8ed1324c54d895ed4efe688cca5769ab9bd77f.zip |
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.
Diffstat (limited to 'src/scripting')
-rw-r--r-- | src/scripting/luascript.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |