update ModsLevel use

This commit is contained in:
Glenn Maynard
2006-09-26 04:03:59 +00:00
parent 29ce29f1d5
commit 3dac292642
3 changed files with 10 additions and 7 deletions
+3 -1
View File
@@ -2041,10 +2041,12 @@ public:
}
static int SetSongOptions( T* p, lua_State *L )
{
ModsLevel m = Enum::Check<ModsLevel>( L, 1 );
SongOptions so;
so.FromString( SArg(2) );
p->m_SongOptions.Assign( ModsLevel(IArg(1)), so );
p->m_SongOptions.Assign( m, so );
return 0;
}
static int GetCurrentStyle( T* p, lua_State *L )