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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user