From 187ea08e1df48ba9c52d27f4d52235b588087478 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 29 Oct 2005 20:28:43 +0000 Subject: (svn r3099) Copy&pasto in r3098 --- roadveh_gui.c | 2 +- ship_gui.c | 2 +- train_gui.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roadveh_gui.c b/roadveh_gui.c index 0385e4efb..8a45d7ae7 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -226,7 +226,7 @@ static void ShowRoadVehDetailsWindow(const Vehicle* v) void CcCloneRoadVeh(bool success, uint tile, uint32 p1, uint32 p2) { if (success) { - const Vehicle* v = GetVehicle(_new_aircraft_id); + const Vehicle* v = GetVehicle(_new_roadveh_id); ShowRoadVehViewWindow(v); } diff --git a/ship_gui.c b/ship_gui.c index 90c12eab6..553af1a7d 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -315,7 +315,7 @@ void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2) void CcCloneShip(bool success, uint tile, uint32 p1, uint32 p2) { if (success) { - const Vehicle* v = GetVehicle(_new_aircraft_id); + const Vehicle* v = GetVehicle(_new_ship_id); ShowShipViewWindow(v); } diff --git a/train_gui.c b/train_gui.c index e8dec8bf5..be2e34c2d 100644 --- a/train_gui.c +++ b/train_gui.c @@ -164,7 +164,7 @@ void CcBuildLoco(bool success, TileIndex tile, uint32 p1, uint32 p2) void CcCloneTrain(bool success, uint tile, uint32 p1, uint32 p2) { if (success) { - const Vehicle* v = GetVehicle(_new_aircraft_id); + const Vehicle* v = GetVehicle(_new_train_id); ShowTrainViewWindow(v); } -- cgit v1.2.3-70-g09d2