Fix buffer parameter not working in LuaPerlinNoiseMap::l_getMapSlice()
authorPedro Gimeno <pggh-66ra@personal.formauri.es>
Mon, 8 Jan 2018 20:32:15 +0000 (21:32 +0100)
committerSmallJoker <mk939@ymail.com>
Sun, 3 Jun 2018 15:32:00 +0000 (17:32 +0200)
src/script/lua_api/l_noise.cpp

index e3e76191f841adefef4693f7695a751a80fec007..90b8864d29e5c80d8564383aa779763e7c648ccb 100644 (file)
@@ -316,7 +316,7 @@ int LuaPerlinNoiseMap::l_getMapSlice(lua_State *L)
        Noise *n = o->noise;
 
        if (use_buffer)
-               lua_pushvalue(L, 3);
+               lua_pushvalue(L, 4);
        else
                lua_newtable(L);