Skip to content

Commit 75bf538

Browse files
committed
fix: minor bug in accounts
1 parent 27d2623 commit 75bf538

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Assets/Scripts/TrajectoryPlanner/TargetableInsertions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public void UpdateTargetableInsertions()
6262
{
6363
// This probe is in targetable but it shouldn't be
6464
ProbeManager probeManager = _targetableProbes[UUID];
65-
Destroy(probeManager.gameObject);
65+
if (probeManager != null)
66+
Destroy(probeManager.gameObject);
6667
_targetableProbes.Remove(UUID);
6768
}
6869
}

0 commit comments

Comments
 (0)