diff options
-rw-r--r-- | src/org/traccar/helper/LocationTree.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/helper/LocationTree.java b/src/org/traccar/helper/LocationTree.java index 90e5fe8c2..3c2d2ff92 100644 --- a/src/org/traccar/helper/LocationTree.java +++ b/src/org/traccar/helper/LocationTree.java @@ -106,7 +106,7 @@ public class LocationTree { Item best = current; if (next != null) { - findNearest(next, search, depth + 1); + best = findNearest(next, search, depth + 1); } if (current.squaredDistance(search) < best.squaredDistance(search)) { |