diff options
author | tron <tron@openttd.org> | 2006-06-04 09:28:33 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-06-04 09:28:33 +0000 |
commit | a0caafeb5075ca58232068b48050717f9cf02313 (patch) | |
tree | 6608f31fde29931d1c8c939c55782cc8de75c8fb /ship_gui.c | |
parent | 9cf3badfcf4e99f20b8a751457ee76d22fc9f110 (diff) | |
download | openttd-a0caafeb5075ca58232068b48050717f9cf02313.tar.xz |
(svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough.
Diffstat (limited to 'ship_gui.c')
-rw-r--r-- | ship_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ship_gui.c b/ship_gui.c index 00a364934..bed2beb5d 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -304,7 +304,7 @@ void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2) const Vehicle* v; if (!success) return; - v = GetVehicle(_new_ship_id); + v = GetVehicle(_new_vehicle_id); if (v->tile == _backup_orders_tile) { _backup_orders_tile = 0; RestoreVehicleOrders(v, _backup_orders_data); @@ -314,7 +314,7 @@ void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2) void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2) { - if (success) ShowShipViewWindow(GetVehicle(_new_ship_id)); + if (success) ShowShipViewWindow(GetVehicle(_new_vehicle_id)); } static void NewShipWndProc(Window *w, WindowEvent *e) |