From aa549506119ae9a82cf4f4ba95f3f1c08fe5bd19 Mon Sep 17 00:00:00 2001 From: Thor Brigsted Date: Sun, 21 Jan 2018 11:20:23 +0100 Subject: [PATCH] Fixed minor bug (error message) --- Scripts/NodeDataCache.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}