Fix crash when lastController is null

This commit is contained in:
Anthony Calosa
2016-06-30 12:19:58 +08:00
parent 39f6867ab0
commit 76bb777f4d

View File

@@ -611,6 +611,8 @@ MTGCardInstance * MTGCardInstance::changeController(Player * newController,bool
Player * MTGCardInstance::controller()
{
if(!lastController)//if null then set the owner as the lastcontroller, prevents crashes...
lastController = owner;
return lastController;
}