diff --git a/Scripts/NodeDataCache.cs b/Scripts/NodeDataCache.cs index d37f31f..262ef04 100644 --- a/Scripts/NodeDataCache.cs +++ b/Scripts/NodeDataCache.cs @@ -63,7 +63,7 @@ namespace XNode { if (inputAttrib == null && outputAttrib == null) continue; - if (inputAttrib != null && outputAttrib != null) Debug.LogError("Field " + fieldInfo + " cannot be both input and output."); + if (inputAttrib != null && outputAttrib != null) Debug.LogError("Field " + fieldInfo[i].Name + " cannot be both input and output."); else { if (!portDataCache.ContainsKey(nodeType)) portDataCache.Add(nodeType, new List()); portDataCache[nodeType].Add(new NodePort(fieldInfo[i])); @@ -98,4 +98,4 @@ namespace XNode { } } } -} \ No newline at end of file +}