mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix indexing bugs in the original TTS code (#3423)
This commit is contained in:
@@ -836,7 +836,7 @@ bool TTSReader::loadHeaders() {
|
||||
if (basis != Slope && slopeCount) {
|
||||
|
||||
while (si.WantsInput(p.getDistanceFromStart())) {
|
||||
if (slopeIdx >= frameMapCount) {
|
||||
if (slopeIdx >= slopeCount) {
|
||||
si.NotifyInputComplete();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -888,7 +888,7 @@ void ErgFile::parseTTS()
|
||||
alt = ttsPoints[0].getElevation();
|
||||
}
|
||||
|
||||
for (int i = 0; i <= pointCount; i++) { // first data point is actually the last...
|
||||
for (int i = 0; i < pointCount; i++) { // first data point is actually the last...
|
||||
ErgFilePoint add;
|
||||
|
||||
prevPoint = point;
|
||||
|
||||
Reference in New Issue
Block a user