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 -2
View File
@@ -173,10 +173,11 @@ class LunaPlayerState: public Luna<PlayerState>
{
static int SetPlayerOptions( T* p, lua_State *L )
{
ModsLevel m = Enum::Check<ModsLevel>( L, 1 );
PlayerOptions po;
po.FromString( SArg(2) );
p->m_PlayerOptions.Assign( ModsLevel(IArg(1)), po );
p->m_PlayerOptions.Assign( m, po );
return 0;
}
public: