diff --git a/internal/server/fence.go b/internal/server/fence.go index d7ea489e..fdb1dbeb 100644 --- a/internal/server/fence.go +++ b/internal/server/fence.go @@ -410,7 +410,7 @@ func fenceMatchRoam( var match bool var j int for ; j < len(newNearbys); j++ { - if newNearbys[i].id == oldNearbys[i].id { + if newNearbys[j].id == oldNearbys[i].id { match = true break }