mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
Fix index after GetConnection did modify the list of connections
This commit is contained in:
parent
82f7887931
commit
d4f07c1599
@ -231,6 +231,7 @@ namespace XNode {
|
|||||||
for (int i = 0; i < connections.Count; i++) {
|
for (int i = 0; i < connections.Count; i++) {
|
||||||
NodePort port = GetConnection(i);
|
NodePort port = GetConnection(i);
|
||||||
if (port != null) result.Add(port);
|
if (port != null) result.Add(port);
|
||||||
|
else i--;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user