From e9eaef430e0b416169ba202a88369dec1e0b60ab Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Mon, 21 Mar 2011 23:16:59 +0000 Subject: [PATCH] unable to repro but i recieved reports of code using "thatmuch" producing massive numbers in edge cases. I realized i never int'ed it to 0, so im hoping that this was the reason for the massive positive and negitives it would produce. --- projects/mtg/src/MTGCardInstance.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/mtg/src/MTGCardInstance.cpp b/projects/mtg/src/MTGCardInstance.cpp index 6b52df87f..90fc1825c 100644 --- a/projects/mtg/src/MTGCardInstance.cpp +++ b/projects/mtg/src/MTGCardInstance.cpp @@ -42,6 +42,7 @@ MTGCardInstance::MTGCardInstance(MTGCard * card, MTGPlayerCards * arg_belongs_to banding = NULL; life = toughness; preventable = 0; + thatmuch = 0; flanked = 0; castMethod = Constants::NOT_CAST; } @@ -157,6 +158,7 @@ void MTGCardInstance::initMTGCI() reduxamount = 0; summoningSickness = 1; preventable = 0; + thatmuch = 0; flanked = 0; target = NULL; type_as_damageable = DAMAGEABLE_MTGCARDINSTANCE; @@ -474,6 +476,7 @@ int MTGCardInstance::cleanup() } regenerateTokens = 0; preventable = 0; + thatmuch = 0; return 1; }