mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +08:00
use array instead of list in a enumeration we wont change
This commit is contained in:
parent
5201808eff
commit
bdbb287f00
@ -46,7 +46,7 @@ namespace XNode {
|
|||||||
// Cleanup port dict - Remove nonexisting static ports - update static port types
|
// Cleanup port dict - Remove nonexisting static ports - update static port types
|
||||||
// AND update dynamic ports (albeit only those in lists) too, in order to enforce proper serialisation.
|
// AND update dynamic ports (albeit only those in lists) too, in order to enforce proper serialisation.
|
||||||
// Loop through current node ports
|
// Loop through current node ports
|
||||||
foreach (NodePort port in ports.Values.ToList()) {
|
foreach (NodePort port in ports.Values.ToArray()) {
|
||||||
// If port still exists, check it it has been changed
|
// If port still exists, check it it has been changed
|
||||||
NodePort staticPort;
|
NodePort staticPort;
|
||||||
if (staticPorts.TryGetValue(port.fieldName, out staticPort)) {
|
if (staticPorts.TryGetValue(port.fieldName, out staticPort)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user