fix bug with lua_type_register/methods
authorTero Marttila <terom@fixme.fi>
Thu, 23 Apr 2009 17:17:14 +0300
changeset 146 24c0fc79d86a
parent 145 a5582e1a83da
child 147 fd97eb3c183a
fix bug with lua_type_register/methods
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);
     }