diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index d64181fb12..0b7b84d9f6 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -2102,6 +2102,16 @@ public: lua_pushstring(L, so.GetString()); return 1; } + static int SetSongOptions( T* p, lua_State *L ) + { + ModsLevel m = Enum::Check( L, 1 ); + + SongOptions so; + + so.FromString( SArg(2) ); + p->m_SongOptions.Assign( m, so ); + return 0; + } static int IsWinner( T* p, lua_State *L ) { PlayerNumber pn = Enum::Check(L, 1); @@ -2164,16 +2174,6 @@ public: LuaHelpers::CreateTableFromArray( vHP, L ); return 1; } - static int SetSongOptions( T* p, lua_State *L ) - { - ModsLevel m = Enum::Check( L, 1 ); - - SongOptions so; - - so.FromString( SArg(2) ); - p->m_SongOptions.Assign( m, so ); - return 0; - } static int GetCurrentStyle( T* p, lua_State *L ) { Style *pStyle = const_cast