Check for table type when reading groups from Lua

master
darkrose 2012-07-15 16:50:42 +10:00 committed by Perttu Ahola
parent 38580fbee7
commit 369046bbb4
1 changed files with 2 additions and 0 deletions

View File

@ -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)