diff options
Diffstat (limited to 'station_gui.c')
-rw-r--r-- | station_gui.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/station_gui.c b/station_gui.c index dc8a95dc1..91b706411 100644 --- a/station_gui.c +++ b/station_gui.c @@ -533,13 +533,11 @@ static const WindowDesc _station_view_desc = { void ShowStationViewWindow(StationID station) { Window *w; - byte color; w = AllocateWindowDescFront(&_station_view_desc, station); if (w) { - color = GetStation(w->window_number)->owner; - if (color != 0x10) - w->caption_color = color; + PlayerID owner = GetStation(w->window_number)->owner; + if (owner != OWNER_NONE) w->caption_color = owner; w->vscroll.cap = 5; } } |