From 28cd4acaf8347503ef08f9635b8a459c6d4dcb3a Mon Sep 17 00:00:00 2001 From: "techdragon.nguyen@gmail.com" Date: Fri, 13 May 2011 03:28:59 +0000 Subject: [PATCH] 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 --- projects/mtg/src/MTGDeck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGDeck.cpp b/projects/mtg/src/MTGDeck.cpp index 002450c5f..848cd6a26 100644 --- a/projects/mtg/src/MTGDeck.cpp +++ b/projects/mtg/src/MTGDeck.cpp @@ -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] << "; "; }