From fdd7b0accd8895eda3fa7ebee3c0053143e9e0a4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 14 Oct 2006 23:26:43 +0000 Subject: [PATCH] simplify --- stepmania/src/LuaBinding.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/LuaBinding.h b/stepmania/src/LuaBinding.h index ac95b309bc..9e24d56529 100644 --- a/stepmania/src/LuaBinding.h +++ b/stepmania/src/LuaBinding.h @@ -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 ); } }