From 6fb5766a5ee00b2db234da0aecf992f35cf5ecdf Mon Sep 17 00:00:00 2001 From: "wrenczes@gmail.com" Date: Wed, 20 Apr 2011 09:28:28 +0000 Subject: [PATCH] Removed targets[20] from the ExtraCost class. It wasn't being used in any meaningful way, and was bloating the class size for nothing. Reduces ExtraCost from 128 to 48 bytes per instance. --- projects/mtg/include/ExtraCost.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/mtg/include/ExtraCost.h b/projects/mtg/include/ExtraCost.h index bb915138b..6f7296a38 100644 --- a/projects/mtg/include/ExtraCost.h +++ b/projects/mtg/include/ExtraCost.h @@ -14,13 +14,12 @@ public: TargetChooser * tc; MTGCardInstance * source; MTGCardInstance * target; - MTGCardInstance * targets[20]; std::string mCostRenderString; ExtraCost(const std::string& inCostRenderString, TargetChooser *_tc = NULL); virtual ~ExtraCost(); virtual int setPayment(MTGCardInstance * card); - virtual int isPaymentSet() { return (target != NULL && targets != NULL); } + virtual int isPaymentSet() { return (target != NULL); } virtual int canPay() { return 1; } virtual int doPay() = 0; virtual void Render();