Verified Commit 414b035d authored by Sebastian Höffner's avatar Sebastian Höffner
Browse files

Fixing missing InstanceIdentifiers to OccupancyGrid

parent 6f8c4425
......@@ -62,7 +62,7 @@ public class OccupancyGrid : MonoBehaviour
occupancy[ix, iy, iz] = new HashSet<string>();
foreach (Collider c in hitColliders)
InstanceIdentifier ii = c.gameObject.GetComponent<InstanceIdentifier>();
InstanceIdentifier ii = c.gameObject.GetComponentInParent<InstanceIdentifier>();
if (ii == null)
occupancy[ix, iy, iz].Add("Unknown");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment