Add cast to clarify slicing of TimeSettings from _settings_client.gui

This commit is contained in:
Jonathan G Rennison
2023-02-15 23:25:23 +00:00
parent 8d6e57799c
commit 633450f620

View File

@@ -547,7 +547,7 @@ void MakeNewgameSettingsLive()
/* Copy newgame settings to active settings. /* Copy newgame settings to active settings.
* Also initialise old settings needed for savegame conversion. */ * Also initialise old settings needed for savegame conversion. */
_settings_game = _settings_newgame; _settings_game = _settings_newgame;
_settings_time = _settings_game.game_time = _settings_client.gui; _settings_time = _settings_game.game_time = (TimeSettings)_settings_client.gui;
_old_vds = _settings_client.company.vehicle; _old_vds = _settings_client.company.vehicle;
for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) { for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) {