diff --git a/orx-quadtree/src/commonMain/kotlin/Quadtree.kt b/orx-quadtree/src/commonMain/kotlin/Quadtree.kt index 51e0fcfd3..985a08ad0 100644 --- a/orx-quadtree/src/commonMain/kotlin/Quadtree.kt +++ b/orx-quadtree/src/commonMain/kotlin/Quadtree.kt @@ -65,7 +65,7 @@ class Quadtree(val bounds: Rectangle, val maxObjects: Int = 10, val mapper: ( for (interNode in intersected) { for (obj in interNode.objects) { - if (element == obj) continue + if (element === obj) continue val p = mapper(obj) val dist = p.squaredDistanceTo(point)