diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-07-13 16:20:26 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-08-05 23:18:57 +0200 |
commit | 05f3249e17121dc79e447b878cbd54e4d51dcdef (patch) | |
tree | 2e7e3805ebb09d6d87243791d0c0d7731fbe2308 /src/scripting/luascript.cpp | |
parent | 7e77328d1b9f35ed542dd3cfceadb1eb41f54afe (diff) | |
download | manaserv-05f3249e17121dc79e447b878cbd54e4d51dcdef.tar.gz manaserv-05f3249e17121dc79e447b878cbd54e4d51dcdef.tar.bz2 manaserv-05f3249e17121dc79e447b878cbd54e4d51dcdef.tar.xz manaserv-05f3249e17121dc79e447b878cbd54e4d51dcdef.zip |
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.
Diffstat (limited to 'src/scripting/luascript.cpp')
-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 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) |