From 44fe3cffecd382a229d8384f7badadffc639bb37 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Tue, 8 Feb 2011 20:25:41 +0000 Subject: [PATCH] fixed a crash that was happening when ai would try to play a card like wurmcalling. --- projects/mtg/src/MTGAbility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 1747591c9..66451729d 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -1747,11 +1747,11 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG int power, toughness; if (!spt.find("X/X") || !spt.find("x/x")) { - value = spell->computeX(card); + value = card->X; } if (!spt.find("XX/XX") || !spt.find("xx/xx")) { - value = spell->computeXX(card); + value = card->XX; } parsePowerToughness(spt, &power, &toughness); string sabilities = s.substr(end + 1);