fix for the manaability filter crash.

This commit is contained in:
omegablast2002@yahoo.com
2012-03-31 18:29:29 +00:00
parent 81a8183322
commit 26fba2d7aa
+1
View File
@@ -167,6 +167,7 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
{ {
if(value == "chosencolor") if(value == "chosencolor")
{ {
if(c)
manaCost->add(c->chooseacolor, 1); manaCost->add(c->chooseacolor, 1);
} }
else if(value == "cycle") else if(value == "cycle")