Fixed a crash occurring on token clone (e.g. Doubling Season) as described in the issue #1040.

This commit is contained in:
valfieri
2020-11-18 15:22:25 +01:00
parent 42f2c34a46
commit 252e66736a
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -4636,7 +4636,8 @@ int AACloner::resolve()
else
{
clone = _target->tokCard;
clone->data = _target->tokCard;//?wtf
if(clone) // Check if clone is not null to avoid null pointer exception. #ISSUE 1040
clone->data = _target->tokCard;//?wtf
}
}
else