Scheduled dispatch: Fixup start dates when changing game date

This commit is contained in:
Jonathan G Rennison
2020-06-20 21:27:19 +01:00
parent d160536315
commit ca79a32890
5 changed files with 15 additions and 0 deletions

View File

@@ -1159,6 +1159,7 @@ void SetStartingYear(Year year)
Date new_date = ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1);
/* If you open a savegame as scenario there may already be link graphs.*/
LinkGraphSchedule::instance.ShiftDates(new_date - _date);
ShiftOrderDates(new_date - _date);
SetDate(new_date, 0);
}