diff options
author | Darkvater <darkvater@openttd.org> | 2005-02-22 20:32:26 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-02-22 20:32:26 +0000 |
commit | 0ddbc1304b161aad6583bd632634723645435f60 (patch) | |
tree | c1c059fd066da56290419c5652130232e50e2936 /train_gui.c | |
parent | 1f66d602725c26c3b378724e7c73ecb7493edd9b (diff) | |
download | openttd-0ddbc1304b161aad6583bd632634723645435f60.tar.xz |
(svn r1906) - Fix: [ 1117327 ] Assertion error on kick. When a company is cleaned all its windows need to be closed. For global vehicle lists, the no-staiton index of -1 was not taken into account
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c index b477cf25b..9bd497024 100644 --- a/train_gui.c +++ b/train_gui.c @@ -1487,7 +1487,7 @@ void ShowPlayerTrains(int player, int station) w = AllocateWindowDescFront(&_other_player_trains_desc, (station << 16) | player); } if (w) { - w->caption_color = w->window_number; + w->caption_color = player; w->hscroll.cap = 10; w->vscroll.cap = 7; // maximum number of vehicles shown w->widget[7].unkA = (w->vscroll.cap << 8) + 1; |