From 7da743a0dc8d9e5098da2464d405a0ed93803c17 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 4 Feb 2009 16:45:07 +0000 Subject: (svn r15336) -Fix: do not use _current_company in the GUI as there are no guarantees that _current_company is the same as _local_company. --- src/station_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/station_gui.cpp') diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 62d3d642d..94b7afc01 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -952,16 +952,16 @@ struct StationViewWindow : public Window { case SVW_PLANES: { // Show a list of scheduled aircraft to this station const Station *st = GetStation(this->window_number); - /* Since oilrigs have no owners, show the scheduled aircraft of current company */ - Owner owner = (st->owner == OWNER_NONE) ? _current_company : st->owner; + /* Since oilrigs have no owners, show the scheduled aircraft of local company */ + Owner owner = (st->owner == OWNER_NONE) ? _local_company : st->owner; ShowVehicleListWindow(owner, VEH_AIRCRAFT, (StationID)this->window_number); break; } case SVW_SHIPS: { // Show a list of scheduled ships to this station const Station *st = GetStation(this->window_number); - /* Since oilrigs/bouys have no owners, show the scheduled ships of current company */ - Owner owner = (st->owner == OWNER_NONE) ? _current_company : st->owner; + /* Since oilrigs/bouys have no owners, show the scheduled ships of local company */ + Owner owner = (st->owner == OWNER_NONE) ? _local_company : st->owner; ShowVehicleListWindow(owner, VEH_SHIP, (StationID)this->window_number); break; } -- cgit v1.2.3-54-g00ecf