fixed a crash in transforms(

This commit is contained in:
omegablast2002@yahoo.com
2012-04-13 10:22:08 +00:00
parent 38688b5b73
commit bdce487c2c

View File

@@ -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;