# HG changeset patch # User Tero Marttila # Date 1240496234 -10800 # Node ID 24c0fc79d86a476f060da11bb628ce5bd03cf1d9 # Parent a5582e1a83da45217037c938a2bc9dd33623b18e fix bug with lua_type_register/methods diff -r a5582e1a83da -r 24c0fc79d86a src/lua_type.c --- a/src/lua_type.c Sun Apr 19 23:56:01 2009 +0300 +++ b/src/lua_type.c Thu Apr 23 17:17:14 2009 +0300 @@ -14,7 +14,7 @@ lua_setfield(L, -1, "__index"); // add the methods to the metatable - for (method = methods; method->func && method->info; method++) { + for (method = methods; method->func; method++) { lua_pushcfunction(L, method->func); lua_setfield(L, -2, method->name); }