NULL check

This commit is contained in:
Anthony Calosa
2015-09-24 12:14:58 +08:00
parent d068388e7f
commit 64578787a0
2 changed files with 4 additions and 2 deletions

View File

@@ -5529,6 +5529,8 @@ void AACastCard::Update(float dt)
if(putinplay)
{
MTGCardInstance * toCheck = (MTGCardInstance*)target;
toCheck->target = NULL;
toCheck->playerTarget = NULL;
toCheck->bypassTC = true;
TargetChooserFactory tcf(game);
TargetChooser * atc = tcf.createTargetChooser(toCheck->spellTargetType,toCheck);