Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
+ lua_getfield(L, index, "connects_to");
+ if(lua_istable(L, -1)
+ int table = lua_gettop(L);
+ lua_pushnil(L);
+ int i = 0;
+ while(lua_next(L, table) != 0){
+ f.tiledef[i] = lua_tostring(L, index);
+ lua_pop(L, 1);
+ i++;
+ }
+ }
+ lua_pop(L, 1);
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment