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:
@@ -42,6 +42,7 @@ MTGCardInstance::MTGCardInstance(MTGCard * card, MTGPlayerCards * arg_belongs_to
|
|||||||
banding = NULL;
|
banding = NULL;
|
||||||
life = toughness;
|
life = toughness;
|
||||||
preventable = 0;
|
preventable = 0;
|
||||||
|
thatmuch = 0;
|
||||||
flanked = 0;
|
flanked = 0;
|
||||||
castMethod = Constants::NOT_CAST;
|
castMethod = Constants::NOT_CAST;
|
||||||
}
|
}
|
||||||
@@ -157,6 +158,7 @@ void MTGCardInstance::initMTGCI()
|
|||||||
reduxamount = 0;
|
reduxamount = 0;
|
||||||
summoningSickness = 1;
|
summoningSickness = 1;
|
||||||
preventable = 0;
|
preventable = 0;
|
||||||
|
thatmuch = 0;
|
||||||
flanked = 0;
|
flanked = 0;
|
||||||
target = NULL;
|
target = NULL;
|
||||||
type_as_damageable = DAMAGEABLE_MTGCARDINSTANCE;
|
type_as_damageable = DAMAGEABLE_MTGCARDINSTANCE;
|
||||||
@@ -474,6 +476,7 @@ int MTGCardInstance::cleanup()
|
|||||||
}
|
}
|
||||||
regenerateTokens = 0;
|
regenerateTokens = 0;
|
||||||
preventable = 0;
|
preventable = 0;
|
||||||
|
thatmuch = 0;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user