Fix bug (last value left out)

This commit is contained in:
Flamefire committed 2014-04-17 00:13:24 +02:00
1 parent 001884ed9d
commit 874c66d6d1
1 file changed
+1 -1
+1 -1
View File
@@ -162,7 +162,7 @@ int PtAKF::_GetNote(float* restrict samples, float* restrict maxVolume, float* r
lastWeight = curWeight;
}
//Set all invalid weights to 0
for(int toneIndex = lastValidTone + 1;toneIndex < _MaxHalfTone; toneIndex++){
for(int toneIndex = lastValidTone + 1;toneIndex <= _MaxHalfTone; toneIndex++){
weights[toneIndex - _MinHalfTone] = 0.f;
}
}