- fix for issue 559 based on Mike's suggestions. The test suite passes
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-12-13 13:59:07 +00:00
parent 19fe04b882
commit 1046ffac02
3 changed files with 28 additions and 1 deletions

View File

@@ -2095,7 +2095,7 @@ void PopulateColorIndexVector(list<int>& colors, const string& colorStringList,
for (int colorIndex = Constants::MTG_COLOR_ARTIFACT; colorIndex < Constants::MTG_NB_COLORS; ++colorIndex)
{
// if the text is not a basic ability but contains a valid color add it to the color vector
if ((Constants::GetBasicAbilityIndex(*iter) != -1)
if ((Constants::GetBasicAbilityIndex(*iter) == -1)
&& ((*iter).find(Constants::MTGColorStrings[colorIndex]) != string::npos))
colors.push_back(colorIndex);
}