mirror of https://github.com/tidwall/tile38.git
parent
1726ff9eef
commit
bb33467da1
|
@ -170,7 +170,7 @@ func fenceMatch(
|
||||||
}
|
}
|
||||||
sw.mu.Lock()
|
sw.mu.Lock()
|
||||||
var distance float64
|
var distance float64
|
||||||
if fence.distance {
|
if fence.distance && fence.obj != nil {
|
||||||
distance = details.obj.Distance(fence.obj)
|
distance = details.obj.Distance(fence.obj)
|
||||||
}
|
}
|
||||||
sw.fmap = details.fmap
|
sw.fmap = details.fmap
|
||||||
|
|
Loading…
Reference in New Issue