mirror of https://github.com/tidwall/tile38.git
Fix crash in fenceMatchRoam causing an index out of range panic
This commit is contained in:
parent
c1ba2d86aa
commit
4fdbade7a4
|
@ -410,7 +410,7 @@ func fenceMatchRoam(
|
||||||
var match bool
|
var match bool
|
||||||
var j int
|
var j int
|
||||||
for ; j < len(newNearbys); j++ {
|
for ; j < len(newNearbys); j++ {
|
||||||
if newNearbys[i].id == oldNearbys[i].id {
|
if newNearbys[j].id == oldNearbys[i].id {
|
||||||
match = true
|
match = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue