mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 18:39:10 +00:00
(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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user