rail_cmd.c
changeset 4725 f7284b86833f
parent 4638 8abe4f10b94b
child 4739 bd535b408617
--- a/rail_cmd.c	Wed Oct 04 07:10:35 2006 +0000
+++ b/rail_cmd.c	Wed Oct 04 12:01:59 2006 +0000
@@ -2006,7 +2006,7 @@
 			v->vehstatus |= VS_HIDDEN; /* hide it */
 			v->direction = ReverseDir(v->direction);
 			if (v->next == NULL)
-				TrainEnterDepot(v, tile);
+				VehicleEnterDepot(v);
 			v->tile = tile;
 			InvalidateWindow(WC_VEHICLE_DEPOT, tile);
 			return 4;