Fix: GetTable & suppr debug logs
This commit is contained in:
parent
8bfb5974d5
commit
276c1acf80
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue