From 1a55f8e0ef5ba3905d2ba7e90b26876618d69959 Mon Sep 17 00:00:00 2001 From: Leinadix <79761215+Leinadix@users.noreply.github.com> Date: Wed, 17 Sep 2025 17:41:23 +0200 Subject: [PATCH] ersfdlsjkdhjfd --- Assets/Scripts/Node.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Node.cs b/Assets/Scripts/Node.cs index 31d0918..ce8d472 100644 --- a/Assets/Scripts/Node.cs +++ b/Assets/Scripts/Node.cs @@ -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); }