From 0503be97bae5ec8df53426bc1da112f59ab3414e Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Sat, 5 May 2012 15:23:28 +0000 Subject: [PATCH] added a check for uppercase x in manacost, when i added specific cost comparing value == "x" instead of 'x' fudged up some of the x cards which had x in caps. thanks for catching kevlahnota! --- projects/mtg/src/ManaCost.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/mtg/src/ManaCost.cpp b/projects/mtg/src/ManaCost.cpp index 152f0483f..bb4f474f9 100644 --- a/projects/mtg/src/ManaCost.cpp +++ b/projects/mtg/src/ManaCost.cpp @@ -91,8 +91,9 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan //switch on the first letter. If two costs share their first letter, add an "if" within the switch switch (value[0]) { + case 'X': case 'x': - if(value == "x") + if(value == "x" || value == "X") manaCost->x(); else {