changeset 13932:a503c6f8fa5e draft

(svn r18464) -Fix (r17863): Caption of the build vehicle window did not have company colours.
author alberth <alberth@openttd.org>
date Fri, 11 Dec 2009 20:37:24 +0000
parents 65f5cb4ea3d1
children a71da8c8c5e2
files src/build_vehicle_gui.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -758,8 +758,6 @@
 		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 @@
 
 		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 */