In the most recent update of the basic abilites this iterator was changed to a standard for loop. However, the condition of when to stop was never written, thus when you saved as AI deck, you either ran into an out of bounds error or some other exception.
This seems to have fixed the bug. Issue: 655
This commit is contained in:
@@ -1072,7 +1072,7 @@ void MTGDeck::printDetailedDeckText(std::ofstream& file )
|
||||
if ( card->data->hasRestriction )
|
||||
currentCard << ", " << card->data->otherrestriction;
|
||||
|
||||
for (size_t x = 0; card->data->basicAbilities.size(); ++x)
|
||||
for (size_t x = 0; x < card->data->basicAbilities.size(); ++x)
|
||||
{
|
||||
currentCard << Constants::MTGBasicAbilities[x] << "; ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user