ersfdlsjkdhjfd

This commit is contained in:
Leinadix 2025-09-17 17:41:23 +02:00
parent 9849c2352f
commit 1a55f8e0ef

View file

@ -57,7 +57,8 @@ public class Node : MonoBehaviour
foreach (GameManager.Connection c in looseConnections)
{
DestroyImmediate(c.lineRenderer.gameObject);
if (c.lineRenderer != null)
DestroyImmediate(c.lineRenderer.gameObject);
gm.connections.Remove(c);
}