mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Add missing type check to InvRef:set_lists() (#10476)
This commit is contained in:
parent
c61c175e9c
commit
272b72361a
@ -280,6 +280,7 @@ int InvRef::l_set_lists(lua_State *L)
|
|||||||
Server *server = getServer(L);
|
Server *server = getServer(L);
|
||||||
|
|
||||||
lua_pushnil(L);
|
lua_pushnil(L);
|
||||||
|
luaL_checktype(L, 2, LUA_TTABLE);
|
||||||
while (lua_next(L, 2)) {
|
while (lua_next(L, 2)) {
|
||||||
const char *listname = lua_tostring(L, -2);
|
const char *listname = lua_tostring(L, -2);
|
||||||
read_inventory_list(L, -1, tempInv, listname, server);
|
read_inventory_list(L, -1, tempInv, listname, server);
|
||||||
|
Loading…
Reference in New Issue
Block a user