try to fix segmentation fault

This commit is contained in:
Anthony Calosa
2016-07-08 18:46:07 +08:00
parent 3aa64697d2
commit 10d81bd47a

View File

@@ -3873,7 +3873,8 @@ int AAMover::resolve()
MTGCardInstance * copy = game->players[i]->game->putInZone(_target, fromZone, game->players[i]->game->temp);
Spell * spell = NEW Spell(game, copy);
spell->resolve();
spell->source->previousController = fromZone->owner;
if(destination == "previousbattlefield")
spell->source->previousController = fromZone->owner;
if(andAbility)
{
MTGAbility * andAbilityClone = andAbility->clone();