1
0
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:
Marcin Swiderski 2024-05-11 15:30:49 +02:00
parent 82f7887931
commit d4f07c1599

View File

@ -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;
} }