summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-12-11 20:37:24 +0000
committeralberth <alberth@openttd.org>2009-12-11 20:37:24 +0000
commit64f1e188300105d9acaf0a1dd26186fc533d04bd (patch)
tree5c40a0cf928242d8c2164a60f3910c32d196f059 /src/build_vehicle_gui.cpp
parent53d6d4a094ef7ff2d7b3fa471b6f5b0312a781e6 (diff)
downloadopenttd-64f1e188300105d9acaf0a1dd26186fc533d04bd.tar.xz
(svn r18464) -Fix (r17863): Caption of the build vehicle window did not have company colours.
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r--src/build_vehicle_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index 7eb97c606..f6b7a4dfe 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -758,8 +758,6 @@ struct BuildVehicleWindow : Window {
this->vehicle_type = type;
this->window_number = tile == INVALID_TILE ? (int)type : tile;
- this->owner = (tile != INVALID_TILE) ? GetTileOwner(tile) : _local_company;
-
this->sel_engine = INVALID_ENGINE;
this->sort_criteria = _last_sort_criteria[type];
@@ -835,6 +833,8 @@ struct BuildVehicleWindow : Window {
this->FinishInitNested(desc, tile == INVALID_TILE ? (int)type : tile);
+ this->owner = (tile != INVALID_TILE) ? GetTileOwner(tile) : _local_company;
+
this->eng_list.ForceRebuild();
this->GenerateBuildList(); // generate the list, since we need it in the next line
/* Select the first engine in the list as default when opening the window */