From 555dbc3d52abefcd3a4201d4d4e596f79c990b9e Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 10 Sep 2007 03:44:36 +0000 Subject: [PATCH] Assign to a particular level, don't just combine. Fixes second extra stage using first extra stage's mods. --- stepmania/src/PlayerState.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 )