use bindings

This commit is contained in:
Glenn Maynard
2006-09-27 06:21:34 +00:00
parent c1194da0d0
commit 2d1a2e6a07
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1252,7 +1252,7 @@ class LunaScreenOptions: public Luna<ScreenOptions>
public:
LunaScreenOptions() { LUA->Register( Register ); }
static int GetCurrentRow( T* p, lua_State *L ) { lua_pushnumber( L, p->GetCurrentRow((PlayerNumber) IArg(1)) ); return 1; }
static int GetCurrentRow( T* p, lua_State *L ) { lua_pushnumber( L, p->GetCurrentRow(Enum::Check<PlayerNumber>(L, 1)) ); return 1; }
static void Register( Lua *L )
{
ADD_METHOD( GetCurrentRow );