From bdce487c2cd28caae39b70eef1c5b8335391aaa1 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Fri, 13 Apr 2012 10:22:08 +0000 Subject: [PATCH] fixed a crash in transforms( --- projects/mtg/src/AllAbilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/AllAbilities.cpp b/projects/mtg/src/AllAbilities.cpp index f8c9dc0b8..cfaebb707 100644 --- a/projects/mtg/src/AllAbilities.cpp +++ b/projects/mtg/src/AllAbilities.cpp @@ -3604,7 +3604,7 @@ int ATransformer::addToGame() { MTGCardInstance * _target = NULL; Interruptible * action = (Interruptible *) target; - if (action->type == ACTION_SPELL && action->state == NOT_RESOLVED) + if (action && action->type == ACTION_SPELL && action->state == NOT_RESOLVED) { Spell * spell = (Spell *) action; _target = spell->source;