summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roadveh_gui.c2
-rw-r--r--ship_gui.c2
-rw-r--r--train_gui.c2
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);
}