diff --git a/Scripts/NodePort.cs b/Scripts/NodePort.cs index 1fbc62f..cbeb688 100644 --- a/Scripts/NodePort.cs +++ b/Scripts/NodePort.cs @@ -381,9 +381,9 @@ namespace XNode { // Add connections to target port for (int i = 0; i < connectionCount; i++) { - PortConnection connection = targetPort.connections[i]; + PortConnection connection = connections[i]; NodePort otherPort = connection.Port; - Connect(otherPort); + targetPort.Connect(otherPort); } ClearConnections(); }