From 35f54fcf464c0e772af722e22c1357fed6b30fc1 Mon Sep 17 00:00:00 2001 From: spx Date: Sat, 19 Feb 2011 21:38:29 +0000 Subject: [PATCH] Small change for r770. --- Library/Measure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Measure.cpp b/Library/Measure.cpp index 253bfeb2..fbefd8e4 100644 --- a/Library/Measure.cpp +++ b/Library/Measure.cpp @@ -453,7 +453,7 @@ bool CMeasure::PostUpdate() { m_AverageValues.resize(m_AverageSize, m_Value); averageValuesSize = m_AverageValues.size(); - m_AveragePos %= averageValuesSize; + if (m_AveragePos >= averageValuesSize) m_AveragePos = 0; } m_AverageValues[m_AveragePos] = m_Value;