From f77fa501f164110201402847ac45b50c9e29f941 Mon Sep 17 00:00:00 2001 From: Simon Rodriguez Date: Wed, 2 Nov 2022 09:30:49 +0100 Subject: [PATCH] removed lookup to list that the tryget is already doing --- Scripts/NodeDataCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/NodeDataCache.cs b/Scripts/NodeDataCache.cs index f97636e..f74ea71 100644 --- a/Scripts/NodeDataCache.cs +++ b/Scripts/NodeDataCache.cs @@ -39,7 +39,7 @@ namespace XNode { if (portDataCache.TryGetValue(nodeType, out typePortCache)) { staticPorts.EnsureCapacity(typePortCache.Count); for (int i = 0; i < typePortCache.Count; i++) { - staticPorts.Add(typePortCache[i].fieldName, portDataCache[nodeType][i]); + staticPorts.Add(typePortCache[i].fieldName, typePortCache[i]); } }