Fix crash in fenceMatchRoam causing an index out of range panic

This commit is contained in:
Lars Wilhelmsen 2020-06-18 15:43:18 +02:00
parent c1ba2d86aa
commit 4fdbade7a4
No known key found for this signature in database
GPG Key ID: 2837CEDF73BEC588
1 changed files with 1 additions and 1 deletions

View File

@ -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
}