diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-07-13 16:20:26 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-07-13 19:20:03 +0200 |
commit | 907b740c17a69a487126c63f6ff917d494a25a1f (patch) | |
tree | 1271e100408160660ed27fa01dbce6e824b49e60 /src/scripting | |
parent | 89847fcbb1befb5b6c31fc42fb3e56d3a2fd6654 (diff) | |
download | manaserv-907b740c17a69a487126c63f6ff917d494a25a1f.tar.gz manaserv-907b740c17a69a487126c63f6ff917d494a25a1f.tar.bz2 manaserv-907b740c17a69a487126c63f6ff917d494a25a1f.tar.xz manaserv-907b740c17a69a487126c63f6ff917d494a25a1f.zip |
Fixed the atinit function
Previously each map had its own scope. They got merged now but the atinit
function was forgotten to adapt.
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 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) |