OSDN Git Service

最速値を求めるつもりで最遅値を求めていたバグを修正。
authorMandhelingFreak <mandheling30-freak@yahoo.co.jp>
Mon, 3 Feb 2014 13:33:22 +0000 (22:33 +0900)
committerMandhelingFreak <mandheling30-freak@yahoo.co.jp>
Mon, 3 Feb 2014 13:33:22 +0000 (22:33 +0900)
GVONavish/GVONavish/GVOSpeedMeter.h

index e5fd7ff..97192c4 100644 (file)
@@ -112,7 +112,7 @@ private:
        {
                double fastest = 0.0;
 
-               VelocityLog::const_iterator it = std::min_element( m_velocityLog.begin(), m_velocityLog.end() );
+               VelocityLog::const_iterator it = std::max_element( m_velocityLog.begin(), m_velocityLog.end() );
                if ( it != m_velocityLog.end() ) {
                        fastest = *it;
                }