diff --git a/stepmania/src/ScreenOptionsMasterPrefs.cpp b/stepmania/src/ScreenOptionsMasterPrefs.cpp index 6c837d902a..03d0533bc6 100644 --- a/stepmania/src/ScreenOptionsMasterPrefs.cpp +++ b/stepmania/src/ScreenOptionsMasterPrefs.cpp @@ -115,6 +115,13 @@ static void MoveData( int &sel, bool &opt, bool ToSel ) template static void MoveData( int &sel, Preference &opt, bool ToSel ) +{ + if( ToSel ) sel = opt; + else opt.Set( sel ); +} + +template<> +static void MoveData( int &sel, Preference &opt, bool ToSel ) { if( ToSel ) sel = opt; else opt.Set( !!sel );