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:
techdragon.nguyen@gmail.com
2011-05-13 03:28:59 +00:00
parent f6d18eb3e3
commit 28cd4acaf8

View File

@@ -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] << "; ";
}