Fixed primitives, fixed MIC set, improved Android downloader, added "Dungeon" and "Emblem" types in "Subtypes.h" enum definition, added a fix in "GameObserver::Affinity()" method in order to avoid a crash when the card is null or if it's a Dungeon in the commandzone.

This commit is contained in:
Vittorio Alfieri
2021-09-24 23:03:54 +02:00
parent cd677111b7
commit 6538f1625e
7 changed files with 153 additions and 92 deletions

View File

@@ -1179,7 +1179,7 @@ void GameObserver::Affinity()
for (int cc = zone->nb_cards - 1; cc >= 0; cc--)
{//start
MTGCardInstance * card = zone->cards[cc];
if (!card)
if (!card || card->hasType(Subtypes::TYPE_DUNGEON)) // Fix to avoid crash when the card is null or if is a Dungeon in the commandzone.
continue;
bool checkAuraP = false;