Fixed the scripts struggling with nested API tables

I actually don't remember what the RoomData's lua references where for,
but I'm pretty srue it wasn't this. I'll figure something out when I've
had a sleep.
This commit is contained in:
Kayne Ruse
2014-11-23 06:38:40 +11:00
parent 20d40d5b81
commit 5eeda8235d
5 changed files with 69 additions and 11 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ int openRoomSystemAPI(lua_State* L) {
//push the substable
for (const luaL_Reg* lib = libs; lib->func; lib++) {
lua_pushcfunction(L, lib->func);
lib->func(L);
lua_setfield(L, -2, lib->name);
}
return 1;