diff --git a/stepmania/src/PlayerState.cpp b/stepmania/src/PlayerState.cpp index c776a75133..36155ed5c4 100644 --- a/stepmania/src/PlayerState.cpp +++ b/stepmania/src/PlayerState.cpp @@ -196,7 +196,9 @@ public: static int SetPlayerOptions( T* p, lua_State *L ) { ModsLevel m = Enum::Check( L, 1 ); - p->m_PlayerOptions.FromString( m, SArg(2) ); + PlayerOptions po; + po.FromString( SArg(2) ); + p->m_PlayerOptions.Assign( m, po ); return 0; } static int GetPlayerOptions( T* p, lua_State *L )