Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent crash of replay started from start-of-scenario save
Start-of-scenario saves in 1.11 do not contain the [replay_start] tag any more because its contents are identical to the starting situation. As a result, the tag needs to be created during the start-up sequence of a scenario. Whether this is necessary was previously decided by checking whether the scenario snapshot was empty. This works when the scenario is started by finishing the previous scenario. However, when the start-of-scenario savegame is loaded, the snapshot is not empty. Thus, we need to check whether the snapshot is empty OR whether the turn number in it is less than 1.
- Loading branch information
ef0ffef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to say that this fixes bug #20564.