Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add missing type check to InvRef:set_lists() (#10476)
- Loading branch information
Showing
with
1 addition
and
0 deletions.
-
+1
−0
src/script/lua_api/l_inventory.cpp
|
@@ -280,6 +280,7 @@ int InvRef::l_set_lists(lua_State *L) |
|
|
Server *server = getServer(L); |
|
|
|
|
|
lua_pushnil(L); |
|
|
luaL_checktype(L, 2, LUA_TTABLE); |
|
|
while (lua_next(L, 2)) { |
|
|
const char *listname = lua_tostring(L, -2); |
|
|
read_inventory_list(L, -1, tempInv, listname, server); |
|
|