From 0678df9334879b6deb4f28fb2e752af1c0244609 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 8 Mar 2007 06:01:11 +0000 Subject: [PATCH] use GameState::SetCurrentStyle --- stepmania/src/ScreenSelectMusic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ScreenSelectMusic.cpp b/stepmania/src/ScreenSelectMusic.cpp index aced40a85a..321a857ea0 100644 --- a/stepmania/src/ScreenSelectMusic.cpp +++ b/stepmania/src/ScreenSelectMusic.cpp @@ -111,7 +111,7 @@ void ScreenSelectMusic::Init() vector vst; GAMEMAN->GetStepsTypesForGame( GAMESTATE->m_pCurGame, vst ); const Style *pStyle = GAMEMAN->GetFirstCompatibleStyle( GAMESTATE->m_pCurGame, GAMESTATE->GetNumSidesJoined(), vst[0] ); - GAMESTATE->m_pCurStyle.Set( pStyle ); + GAMESTATE->SetCurrentStyle( pStyle ); } if( GAMESTATE->GetCurrentStyle() == NULL ) RageException::Throw( "The Style has not been set. A theme must set the Style before loading ScreenSelectMusic." ); @@ -869,7 +869,7 @@ void ScreenSelectMusic::MenuStart( const InputEventPlus &input ) stCurrent = GAMESTATE->m_pCurSteps[pn]->m_StepsType; vector vst; const Style *pStyle = GAMEMAN->GetFirstCompatibleStyle( GAMESTATE->m_pCurGame, GAMESTATE->GetNumSidesJoined(), stCurrent ); - GAMESTATE->m_pCurStyle.Set( pStyle ); + GAMESTATE->SetCurrentStyle( pStyle ); }