fix assertion failure: SetSelections and GetSelections (currently) take no
"self" parameter--you can store the table index in an upvalue if you need it. (I havn't worked with this enough, yet, to tell which method is better ...)
This commit is contained in:
@@ -692,9 +692,6 @@ int ScreenOptionsMaster::ExportOption( const OptionRowDefinition &row, const Opt
|
||||
if( !lua_isfunction( LUA->L, -1 ) )
|
||||
RageException::Throw( "\"%s\" \"SetSelections\" entry is not a function", row.name.c_str() );
|
||||
|
||||
/* Push self. */
|
||||
hand.m_LuaTable.PushSelf( LUA->L );
|
||||
|
||||
/* Argument 1 (vbSelectedOut): */
|
||||
lua_pushvalue( LUA->L, 1 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user