Hid Subtypes behind MTGAllCards and added a mutex to be able to use both singleton from several threads.

This commit is contained in:
Xawotihs@gmail.com
2012-02-12 22:20:05 +00:00
parent ebc4eb331f
commit bd1afebbea
15 changed files with 74 additions and 54 deletions

View File

@@ -2057,7 +2057,7 @@ void WGuiFilterItem::updateValue()
vector<string> stlist;
for (int i = Subtypes::LAST_TYPE + 1;; i++)
{
string s = Subtypes::subtypesList->find(i);
string s = MTGAllCards::findType(i);
if (s == "") break;
if (s.find(" ") != string::npos) continue;
if (s == "Nothing")