Skip to content

Commit

Permalink
Minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Siccity committed Feb 5, 2021
1 parent d58845e commit 75ee5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/NodePort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public void Disconnect(NodePort port) {
}
// Trigger OnRemoveConnection
node.OnRemoveConnection(this);
if (port != null) port.node.OnRemoveConnection(port);
if (port != null && port.IsConnectedTo(this)) port.node.OnRemoveConnection(port);
}

/// <summary> Disconnect this port from another port </summary>
Expand Down

0 comments on commit 75ee5d4

Please sign in to comment.