From 74d3382b946d71445fbce5699d1541946e928450 Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 7 Aug 2009 22:23:34 +0000 Subject: (svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed --- src/station.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/station.cpp') diff --git a/src/station.cpp b/src/station.cpp index 14d66cf60..81c6c186d 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -88,10 +88,10 @@ Station::~Station() DeleteWindowById(WC_AIRCRAFT_LIST, wno | (VEH_AIRCRAFT << 11)); /* Now delete all orders that go to the station */ - RemoveOrderFromAllVehicles(OT_GOTO_STATION, index); + RemoveOrderFromAllVehicles(OT_GOTO_STATION, this->index); /* Subsidies need removal as well */ - DeleteSubsidyWithStation(index); + DeleteSubsidyWith(ST_STATION, this->index); /* Remove all news items */ DeleteStationNews(this->index); -- cgit v1.2.3-54-g00ecf