mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Check for table type when reading groups from Lua
This commit is contained in:
@@ -686,6 +686,8 @@ static NodeBox read_nodebox(lua_State *L, int index)
|
||||
static void read_groups(lua_State *L, int index,
|
||||
std::map<std::string, int> &result)
|
||||
{
|
||||
if (!lua_istable(L,index))
|
||||
return;
|
||||
result.clear();
|
||||
lua_pushnil(L);
|
||||
if(index < 0)
|
||||
|
Reference in New Issue
Block a user