summaryrefslogtreecommitdiff
path: root/aircraft_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-04 09:28:33 +0000
committertron <tron@openttd.org>2006-06-04 09:28:33 +0000
commita0caafeb5075ca58232068b48050717f9cf02313 (patch)
tree6608f31fde29931d1c8c939c55782cc8de75c8fb /aircraft_gui.c
parent9cf3badfcf4e99f20b8a751457ee76d22fc9f110 (diff)
downloadopenttd-a0caafeb5075ca58232068b48050717f9cf02313.tar.xz
(svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough.
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r--aircraft_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c
index 8b13e6d35..59c7b7c13 100644
--- a/aircraft_gui.c
+++ b/aircraft_gui.c
@@ -76,7 +76,7 @@ static void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selectio
void CcBuildAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2)
{
if (success) {
- const Vehicle* v = GetVehicle(_new_aircraft_id);
+ const Vehicle* v = GetVehicle(_new_vehicle_id);
if (v->tile == _backup_orders_tile) {
_backup_orders_tile = 0;
@@ -88,7 +88,7 @@ void CcBuildAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2)
void CcCloneAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2)
{
- if (success) ShowAircraftViewWindow(GetVehicle(_new_aircraft_id));
+ if (success) ShowAircraftViewWindow(GetVehicle(_new_vehicle_id));
}
static void NewAircraftWndProc(Window *w, WindowEvent *e)