Hid Subtypes behind MTGAllCards and added a mutex to be able to use both singleton from several threads.
This commit is contained in:
@@ -504,7 +504,7 @@ size_t MTGGameZone::getIndex(MTGCardInstance * card)
|
||||
unsigned int MTGGameZone::countByType(const char * value)
|
||||
{
|
||||
int result = 0;
|
||||
int subTypeId = Subtypes::subtypesList->find(value);
|
||||
int subTypeId = MTGAllCards::findType(value);
|
||||
for (int i = 0; i < (nb_cards); i++)
|
||||
{
|
||||
if (cards[i]->hasType(subTypeId))
|
||||
|
||||
Reference in New Issue
Block a user