From e3d0ab8ba00a361e80cc1cebb78c5f0c697d7b01 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Mon, 10 Oct 2011 14:20:50 +0000 Subject: [PATCH] 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. --- projects/mtg/src/MTGDeck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGDeck.cpp b/projects/mtg/src/MTGDeck.cpp index 6b823ede8..9c97e0dba 100644 --- a/projects/mtg/src/MTGDeck.cpp +++ b/projects/mtg/src/MTGDeck.cpp @@ -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())