diff --git a/TrackedObject.cpp b/TrackedObject.cpp index a7a4ccb..c1eeb1b 100644 --- a/TrackedObject.cpp +++ b/TrackedObject.cpp @@ -21,6 +21,8 @@ InterestingThing::InterestingThing(Sensor *sensor, Spherical position, bool InterestingThing::IsTheSameAs(InterestingThing *otherObj) { if (id != 0 && id == otherObj->id) return true; + if (type != otherObj->type) + return false; if (fabsf(position.distance - otherObj->position.distance) > equalityDistance) return false; if (fabsf(position.horizontalAngle - otherObj->position.horizontalAngle) >