Fix: GetTable & suppr debug logs
This commit is contained in:
parent
8bfb5974d5
commit
276c1acf80
|
@ -5,9 +5,8 @@ using System.Collections.Generic;
|
||||||
public class RulesDatabase {
|
public class RulesDatabase {
|
||||||
|
|
||||||
public static TwoDA GetTable(string name){
|
public static TwoDA GetTable(string name){
|
||||||
if(Get().m_tables.ContainsKey(name)){
|
TwoDA t = null;
|
||||||
TwoDA t;
|
if(Get().m_tables.TryGetValue(name, out t)){
|
||||||
inst.m_tables.TryGetValue(name, out t);
|
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -27,7 +26,7 @@ public class RulesDatabase {
|
||||||
foreach(string file in files){
|
foreach(string file in files){
|
||||||
string name = Path.GetFileNameWithoutExtension(file);
|
string name = Path.GetFileNameWithoutExtension(file);
|
||||||
m_tables.Add(name, new TwoDA(file));
|
m_tables.Add(name, new TwoDA(file));
|
||||||
Debug.Log ("Found "+name);
|
//Debug.Log ("Found "+name);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue