From f388414f3f955e657ce98ef288464edaf8ca6513 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Wed, 11 Jan 2012 17:20:55 +0000 Subject: [PATCH] if we have no target we are milling the sources controller in mill cost. --- projects/mtg/src/ExtraCost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/ExtraCost.cpp b/projects/mtg/src/ExtraCost.cpp index d2c498d7e..4c10376ef 100644 --- a/projects/mtg/src/ExtraCost.cpp +++ b/projects/mtg/src/ExtraCost.cpp @@ -302,7 +302,7 @@ MillCost::MillCost(TargetChooser *_tc) int MillCost::canPay() { - MTGGameZone * z = target->controller()->game->library; + MTGGameZone * z = target?target->controller()->game->library:source->controller()->game->library; int nbcards = z->nb_cards; if (nbcards < 1) return 0;