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.

This commit is contained in:
omegablast2002@yahoo.com
2011-03-21 23:16:59 +00:00
parent 096add2236
commit e9eaef430e

View File

@@ -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;
}