summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-29 20:28:43 +0000
committertron <tron@openttd.org>2005-10-29 20:28:43 +0000
commit187ea08e1df48ba9c52d27f4d52235b588087478 (patch)
tree6030d4a2f635dcdaffa22188e6cf564a466db1d2
parent9e957ff80bcd1e6be4239bd8355a355e5c892ded (diff)
downloadopenttd-187ea08e1df48ba9c52d27f4d52235b588087478.tar.xz
(svn r3099) Copy&pasto in r3098
-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);
}