diff options
author | rubidium <rubidium@openttd.org> | 2009-02-04 16:45:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-04 16:45:07 +0000 |
commit | 7da743a0dc8d9e5098da2464d405a0ed93803c17 (patch) | |
tree | 4a5fe41066de010bd441a15fc54033301d5a6f07 /src/station_gui.cpp | |
parent | 09fca459a7acd7c1b1e14712678a977d30a13297 (diff) | |
download | openttd-7da743a0dc8d9e5098da2464d405a0ed93803c17.tar.xz |
(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.
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |