ship_gui.c
changeset 3948 a09379beffd5
parent 3887 ece644bbf459
child 3961 9868b766fda7
--- a/ship_gui.c	Sun Jun 04 09:13:59 2006 +0000
+++ b/ship_gui.c	Sun Jun 04 09:28:33 2006 +0000
@@ -304,7 +304,7 @@
 	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 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)