diff --git a/stepmania/src/WheelNotifyIcon.cpp b/stepmania/src/WheelNotifyIcon.cpp index 32bb7ed580..747f092c81 100644 --- a/stepmania/src/WheelNotifyIcon.cpp +++ b/stepmania/src/WheelNotifyIcon.cpp @@ -67,10 +67,10 @@ bool WheelNotifyIcon::EarlyAbortDraw() void WheelNotifyIcon::Update( float fDeltaTime ) { - float fSecondFraction = fmodf(RageTimer::GetTimeSinceStart(), 1 ); if( m_vIconsToShow.size() > 0 ) { - int index = (int)(fSecondFraction*m_vIconsToShow.size()); + const float fSecondFraction = fmodf( RageTimer::GetTimeSinceStart(), 1 ); + const int index = (int)(fSecondFraction*m_vIconsToShow.size()); Sprite::SetState( m_vIconsToShow[index] ); }