summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-03-18 23:41:39 +0000
committeryexo <yexo@openttd.org>2010-03-18 23:41:39 +0000
commitba8f7449419a02a4e53c82ee54939ab106393ea7 (patch)
tree47e0910763f848c01e1aade2b5294605200e4454 /src
parentdf34fdcc26dbc40ca06fdc2e5d43172943b9fc46 (diff)
downloadopenttd-ba8f7449419a02a4e53c82ee54939ab106393ea7.tar.xz
(svn r19461) -Fix (r19355): p1 was still used in two places
Diffstat (limited to 'src')
-rw-r--r--src/station_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 99f7e7fd6..fbae4b1a3 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2187,7 +2187,7 @@ CommandCost CmdBuildAirport(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
st = new Station(tile);
st->town = t;
- st->string_id = GenerateStationName(st, tile, !(GetAirport(p1)->flags & AirportFTAClass::AIRPLANES) ? STATIONNAMING_HELIPORT : STATIONNAMING_AIRPORT);
+ st->string_id = GenerateStationName(st, tile, !(GetAirport(airport_type)->flags & AirportFTAClass::AIRPLANES) ? STATIONNAMING_HELIPORT : STATIONNAMING_AIRPORT);
if (Company::IsValidID(_current_company)) {
SetBit(st->town->have_ratings, _current_company);
@@ -2205,7 +2205,7 @@ CommandCost CmdBuildAirport(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
nearest->noise_reached += newnoise_level;
st->AddFacility(FACIL_AIRPORT, tile);
- st->airport.type = (byte)p1;
+ st->airport.type = airport_type;
st->airport.flags = 0;
st->rect.BeforeAddRect(tile, w, h, StationRect::ADD_TRY);