From bfc2b276e15086d5cef1ab9c371cb7ebc5415fe9 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 17 Apr 2026 14:53:14 +0200 Subject: [PATCH] Fix crash when loading Visject graph with a broken connection --- Source/Engine/Visject/Graph.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Visject/Graph.h b/Source/Engine/Visject/Graph.h index 19aa3e892..7a09e63d4 100644 --- a/Source/Engine/Visject/Graph.h +++ b/Source/Engine/Visject/Graph.h @@ -287,7 +287,11 @@ public: { int32 hintIndex = (int32)(intptr)box->Connections[k]; TmpConnectionHint hint = tmpHints[hintIndex]; - box->Connections[k] = hint.Node->GetBox(hint.BoxID); + Box* hintBox = hint.Node->TryGetBox(hint.BoxID); + if (hintBox == nullptr) + box->Connections.RemoveAtKeepOrder(k--); + else + box->Connections[k] = hintBox; } } }