From 5255aabe4d091c53ea1c0aa08a93bbdadc25bfb2 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 17 Mar 2025 20:28:02 +0000 Subject: [PATCH] Fix #13839: Incorrect colour of first company legend in smallmap window. (#13841) 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)) {