From 920ce00f759b60f0a186e6cd3a5c599cd051f3f3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 15 Apr 2016 10:22:38 +1200 Subject: Fix regression issue in the tree --- src/org/traccar/helper/LocationTree.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/helper/LocationTree.java') 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)) { -- cgit v1.2.3