We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27d2623 commit 75bf538Copy full SHA for 75bf538
1 file changed
Assets/Scripts/TrajectoryPlanner/TargetableInsertions.cs
@@ -62,7 +62,8 @@ public void UpdateTargetableInsertions()
62
{
63
// This probe is in targetable but it shouldn't be
64
ProbeManager probeManager = _targetableProbes[UUID];
65
- Destroy(probeManager.gameObject);
+ if (probeManager != null)
66
+ Destroy(probeManager.gameObject);
67
_targetableProbes.Remove(UUID);
68
}
69
0 commit comments