try to fix psp compilation

travis error:
../projects/mtg/src/ManaCost.cpp:263:23: error: unused variable
‘counterCheck’ [-Werror=unused-variable]
This commit is contained in:
Anthony Calosa
2016-06-01 09:14:47 +08:00
parent a454c3e564
commit a36b47e500
+6 -8
View File
@@ -260,7 +260,12 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
{ {
manaCost->addExtraCost(NEW CycleCost(tc)); manaCost->addExtraCost(NEW CycleCost(tc));
} }
else if(size_t counterCheck = value.find("(") != string::npos) else if(value == "c")
{
manaCost->add(Constants::MTG_COLOR_WASTE, 1);
break;
}
else
{ {
size_t counter_start = value.find("("); size_t counter_start = value.find("(");
size_t counter_end = value.find(")", counter_start); size_t counter_end = value.find(")", counter_start);
@@ -288,13 +293,6 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
manaCost->addExtraCost(NEW CounterCost(counter, tc)); manaCost->addExtraCost(NEW CounterCost(counter, tc));
break; break;
} }
else if (value == "c")
{
manaCost->add(Constants::MTG_COLOR_WASTE, 1);
break;
}
break; break;
} }
default: //uncolored cost and hybrid costs and special cost default: //uncolored cost and hybrid costs and special cost