Fixed a crash introduced in the last version when trying to resume a game.