From 85033e1b59f9b88205d2f861f0f41ae93bf2a5ee Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 17 Mar 2025 01:08:24 +0000 Subject: [PATCH] Fix #13839: Incorrect colour of first company legend in smallmap window. Use the proper command to set the initial company colour. --- src/openttd.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/openttd.cpp b/src/openttd.cpp index 3fb4706247..04326c6f0f 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -872,9 +872,7 @@ static void MakeNewGameDone() * COLOUR_END corresponds to Random colour */ if (_settings_client.gui.starting_colour != COLOUR_END) { - c->colour = _settings_client.gui.starting_colour; - ResetCompanyLivery(c); - _company_colours[c->index] = c->colour; + Command::Post(LS_DEFAULT, true, _settings_client.gui.starting_colour); } if (_settings_client.gui.starting_colour_secondary != COLOUR_END && HasBit(_loaded_newgrf_features.used_liveries, LS_DEFAULT)) {