Fix Valgrind warnings appearing during the test suit.

This commit is contained in:
Tobias Loose
2013-11-29 18:20:41 +01:00
parent 89206b3a6b
commit 031f2dbffb
11 changed files with 23 additions and 7 deletions

View File

@@ -125,6 +125,7 @@ int MTGCardInstance::init()
void MTGCardInstance::initMTGCI()
{
X = 0;
sample = "";
model = NULL;
isToken = false;
@@ -195,6 +196,8 @@ void MTGCardInstance::initMTGCI()
lastController = NULL;
regenerateTokens = 0;
blocked = false;
graveEffects = false;
exileEffects = false;
currentZone = NULL;
cardsAbilities = vector<MTGAbility *>();
data = this; //an MTGCardInstance point to itself for data, allows to update it without killing the underlying database item