diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index de770eb81b..59db1c53b9 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -67,7 +67,7 @@ void Player::Load( PlayerNumber pn, NoteData* pNoteData, LifeMeter* pLM, ScoreDi m_pLifeMeter = pLM; m_pScore = pScore; - StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); + const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); // init scoring NoteDataWithScoring::Init(); diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 1d705ed613..2b1009ae38 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -438,7 +438,7 @@ ScreenGameplay::ScreenGameplay() // Get the current StyleDef definition (used below) - StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); + const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); for( p=0; pm_pCurNotes[p]->GetNoteData( &originalNoteData ); - StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); + const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); NoteData newNoteData; pStyleDef->GetTransformedNoteDataForStyle( (PlayerNumber)p, &originalNoteData, &newNoteData );