diff --git a/Assets/src/RulesDatabase.cs b/Assets/src/RulesDatabase.cs index 9dba536..60c62b5 100644 --- a/Assets/src/RulesDatabase.cs +++ b/Assets/src/RulesDatabase.cs @@ -5,9 +5,8 @@ using System.Collections.Generic; public class RulesDatabase { public static TwoDA GetTable(string name){ - if(Get().m_tables.ContainsKey(name)){ - TwoDA t; - inst.m_tables.TryGetValue(name, out t); + TwoDA t = null; + if(Get().m_tables.TryGetValue(name, out t)){ return t; } else @@ -27,7 +26,7 @@ public class RulesDatabase { foreach(string file in files){ string name = Path.GetFileNameWithoutExtension(file); m_tables.Add(name, new TwoDA(file)); - Debug.Log ("Found "+name); + //Debug.Log ("Found "+name); } }