diff --git a/src/TimingData.cpp b/src/TimingData.cpp index 5831306c26..65df49d924 100644 --- a/src/TimingData.cpp +++ b/src/TimingData.cpp @@ -1011,13 +1011,11 @@ void TimingData::ScaleRegion( float fScale, int iStartIndex, int iEndIndex, bool int length = iEndIndex - iStartIndex; int newLength = lrintf( fScale * length ); - // TODO: Confirm this works as intended. for (unsigned i = 0; i < NUM_TimingSegmentType; i++) { - vector &segs = this->allTimingSegments[i]; - for (unsigned j = 0; j < segs.size(); j++) + for (unsigned j = 0; j < this->allTimingSegments[i].size(); j++) { - segs[i][j].Scale(iStartIndex, length, newLength); + this->allTimingSegments[i][j]->Scale(iStartIndex, length, newLength); } }