This commit is contained in:
Glenn Maynard
2006-10-14 23:26:43 +00:00
parent 9fc246d64c
commit fdd7b0accd
+1 -2
View File
@@ -54,10 +54,9 @@ protected:
for( unsigned i=0; i < m_aMethods.size(); i++ )
{
const RegType *l = &m_aMethods[i];
lua_pushstring( L, l->szName );
lua_pushlightuserdata( L, (void*) l->mfunc );
lua_pushcclosure( L, thunk, 1 );
lua_settable( L, iMethods );
lua_setfield( L, iMethods, l->szName );
}
}