From 276c1acf803ffbd2c7720da635aef17ded5c7014 Mon Sep 17 00:00:00 2001 From: "Crom (Thibaut CHARLES)" Date: Sat, 15 Nov 2014 16:36:30 +0100 Subject: [PATCH] Fix: GetTable & suppr debug logs --- Assets/src/RulesDatabase.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); } }