1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 01:06:01 +08:00

removed lookup to list that the tryget is already doing

This commit is contained in:
Simon Rodriguez 2022-11-02 09:30:49 +01:00
parent f167313957
commit f77fa501f1

View File

@ -39,7 +39,7 @@ namespace XNode {
if (portDataCache.TryGetValue(nodeType, out typePortCache)) { if (portDataCache.TryGetValue(nodeType, out typePortCache)) {
staticPorts.EnsureCapacity(typePortCache.Count); staticPorts.EnsureCapacity(typePortCache.Count);
for (int i = 0; i < typePortCache.Count; i++) { for (int i = 0; i < typePortCache.Count; i++) {
staticPorts.Add(typePortCache[i].fieldName, portDataCache[nodeType][i]); staticPorts.Add(typePortCache[i].fieldName, typePortCache[i]);
} }
} }