Skip to content
Snippets Groups Projects
Commit 369046bb authored by darkrose's avatar darkrose Committed by Perttu Ahola
Browse files

Check for table type when reading groups from Lua

parent 38580fbe
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment