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