ship_gui.c
changeset 2630 35249d2ded3e
parent 2562 9397cf08c273
child 2639 8a7342eb3a78
--- a/ship_gui.c	Sat Nov 12 11:10:12 2005 +0000
+++ b/ship_gui.c	Sun Nov 13 13:43:55 2005 +0000
@@ -28,7 +28,7 @@
 {
 	YearMonthDay ymd;
 	const ShipVehicleInfo *svi = ShipVehInfo(engine_number);
-	Engine *e;
+	const Engine* e;
 
 	/* Purchase cost - Max speed */
 	SetDParam(0, svi->base_cost * (_price.ship_base>>3)>>5);
@@ -301,7 +301,7 @@
 
 void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2)
 {
-	Vehicle *v;
+	const Vehicle* v;
 	if (!success) return;
 
 	v = GetVehicle(_new_ship_id);
@@ -755,7 +755,7 @@
 
 static void ClonePlaceObj(TileIndex tile, const Window* w)
 {
-	Vehicle* v = CheckMouseOverVehicle();
+	const Vehicle* v = CheckMouseOverVehicle();
 
 	if (v != NULL) HandleCloneVehClick(v, w);
 }