Merge branch 'valgrind' of https://github.com/ZobyTwo/wagic into ZobyTwo-valgrind

This commit is contained in:
xawotihs
2013-11-29 19:41:46 +01:00
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