diff --git a/src/ScreenGameplay.cpp b/src/ScreenGameplay.cpp index ed137362fc..0cf3679673 100644 --- a/src/ScreenGameplay.cpp +++ b/src/ScreenGameplay.cpp @@ -769,10 +769,10 @@ void ScreenGameplay::Init() // Fill StageStats STATSMAN->m_CurStageStats.m_vpPossibleSongs = m_apSongsQueue; - FOREACH( PlayerInfo, m_vPlayerInfo, pi ) + for (PlayerInfo &pi : m_vPlayerInfo) { - if( pi->GetPlayerStageStats() ) - pi->GetPlayerStageStats()->m_vpPossibleSteps = pi->m_vpStepsQueue; + if( pi.GetPlayerStageStats() ) + pi.GetPlayerStageStats()->m_vpPossibleSteps = pi.m_vpStepsQueue; } FOREACH_EnabledPlayerInfo( m_vPlayerInfo, pi ) @@ -2264,10 +2264,10 @@ bool ScreenGameplay::Input( const InputEventPlus &input ) { if( input.mp != MultiPlayer_Invalid && GAMESTATE->IsMultiPlayerEnabled(input.mp) && iCol != -1 ) { - FOREACH( PlayerInfo, m_vPlayerInfo, pi ) + for (PlayerInfo const &pi : m_vPlayerInfo) { - if( input.mp == pi->m_mp ) - pi->m_pPlayer->Step( iCol, -1, input.DeviceI.ts, false, bRelease ); + if( input.mp == pi.m_mp ) + pi.m_pPlayer->Step( iCol, -1, input.DeviceI.ts, false, bRelease ); } return true; }