From: kwolekr Date: Thu, 21 Nov 2013 05:45:17 +0000 (-0500) Subject: LuaVoxelManip: Update parameter index of set_lighting() X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=98e4e2b373ccb138c1e1244c2995e80b95340ca1;p=zefram%2Fminetest%2Fminetest_engine.git LuaVoxelManip: Update parameter index of set_lighting() --- diff --git a/src/script/lua_api/l_vmanip.cpp b/src/script/lua_api/l_vmanip.cpp index 1e9cc350..db8884e1 100644 --- a/src/script/lua_api/l_vmanip.cpp +++ b/src/script/lua_api/l_vmanip.cpp @@ -163,8 +163,8 @@ int LuaVoxelManip::l_set_lighting(lua_State *L) return 0; u8 light; - light = (getintfield_default(L, 4, "day", 0) & 0x0F); - light |= (getintfield_default(L, 4, "night", 0) & 0x0F) << 8; + light = (getintfield_default(L, 2, "day", 0) & 0x0F); + light |= (getintfield_default(L, 2, "night", 0) & 0x0F) << 8; ManualMapVoxelManipulator *vm = o->vm;