From 6f4377de76cec914ebd9cc5af36e1e3370e5be9c Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Mon, 13 Feb 2017 17:54:55 +0800 Subject: [PATCH] Inverted this we transform with no value.. get the value first then transform it to lower... --- projects/mtg/src/CardPrimitive.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/mtg/src/CardPrimitive.cpp b/projects/mtg/src/CardPrimitive.cpp index 23e9f9f78..d48d48373 100644 --- a/projects/mtg/src/CardPrimitive.cpp +++ b/projects/mtg/src/CardPrimitive.cpp @@ -334,8 +334,8 @@ void CardPrimitive::addMagicText(string value, string key) void CardPrimitive::setdoubleFaced(const string& value) { - std::transform(doubleFaced.begin(), doubleFaced.end(), doubleFaced.begin(), ::tolower); doubleFaced = value; + std::transform(doubleFaced.begin(), doubleFaced.end(), doubleFaced.begin(), ::tolower); } const string& CardPrimitive::getdoubleFaced() const @@ -345,8 +345,8 @@ const string& CardPrimitive::getdoubleFaced() const void CardPrimitive::setAICustomCode(const string& value) { - std::transform(AICustomCode.begin(), AICustomCode.end(), AICustomCode.begin(), ::tolower); AICustomCode = value; + std::transform(AICustomCode.begin(), AICustomCode.end(), AICustomCode.begin(), ::tolower); } const string& CardPrimitive::getAICustomCode() const @@ -356,8 +356,8 @@ const string& CardPrimitive::getAICustomCode() const void CardPrimitive::setCrewAbility(const string& value) { - std::transform(CrewAbility.begin(), CrewAbility.end(), CrewAbility.begin(), ::tolower); CrewAbility = value; + std::transform(CrewAbility.begin(), CrewAbility.end(), CrewAbility.begin(), ::tolower); } const string& CardPrimitive::getCrewAbility() const