Fix crash when loading Visject graph with a broken connection

This commit is contained in:
2026-04-17 14:53:14 +02:00
parent fa01d2d8a3
commit bfc2b276e1
+5 -1
View File
@@ -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;
}
}
}