Fix #9190 error in Lua mapgen

This commit is contained in:
gfgtdf 2024-09-15 03:24:05 +02:00 committed by GitHub
parent 094918c5ac
commit ff9ccabbee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -480,7 +480,7 @@ public:
if(lua_geti(L, idx, 3) == LUA_TSTRING) {
init_from_ranges(luaL_checkstring(L, -2), luaL_checkstring(L, -1));
} else {
init_from_named_set(L, luaL_checkstring(L, -1), res_index, ks);
init_from_named_set(L, luaL_checkstring(L, -2), res_index, ks);
}
break;
}