corrected a mistake i made with name and other manacost, I meant to erase the name from value not s this caused strange issues when a name was given to a "other" cost which contained an actual parseable mana cost inside.

do note tho, our text menues will not display "{" and "}" charectors, so its best to keep them out of "name(" anyways as they serve no purpose.
This commit is contained in:
omegablast2002@yahoo.com
2011-10-10 14:20:50 +00:00
parent 516089869d
commit e3d0ab8ba0

View File

@@ -201,7 +201,7 @@ int MTGAllCards::processConfLine(string &s, MTGCard *card, CardPrimitive * primi
{
size_t endName = value.find(")",name);
theName = value.substr(name + 5,endName - name - 5);
s.erase(name, endName - name + 1);
value.erase(name, endName - name + 1);
}
cost->alternative = ManaCost::parseManaCost(value);
if(theName.size())