bugfix
This commit is contained in:
parent
f87f464893
commit
19a9048973
1 changed files with 1 additions and 1 deletions
|
@ -1151,7 +1151,7 @@ proc sortHits(hits: var seq[(float32, int16)], inl, inr: int) =
|
||||||
var
|
var
|
||||||
j = i - 1
|
j = i - 1
|
||||||
k = i
|
k = i
|
||||||
while j >= 0 and hits[j][0] > hits[k][0]:
|
while j >= inl and hits[j][0] > hits[k][0]:
|
||||||
swap(hits[j + 1], hits[j])
|
swap(hits[j + 1], hits[j])
|
||||||
dec j
|
dec j
|
||||||
dec k
|
dec k
|
||||||
|
|
Loading…
Reference in a new issue