station_cmd.c
changeset 1672 6ebb949f9456
parent 1664 000099fbae6e
child 1685 b9cfe79393c0
--- a/station_cmd.c	Sun Apr 10 18:02:48 2005 +0000
+++ b/station_cmd.c	Sun Apr 10 20:48:43 2005 +0000
@@ -2426,15 +2426,12 @@
 	for (rs = GetPrimaryRoadStop(st, rst); rs != NULL; rs = rs->next) {
 		for (k = 0; k < NUM_SLOTS; k++) {
 			if (rs->slot[k] != INVALID_SLOT) {
-				Vehicle *v = GetVehicle(rs->slot[k]);
-
-				assert(v->type == VEH_Road);
-				if (v->u.road.slot != rs) {
-					DEBUG(ms, 1) ("Multistop: %s slot desync between stop at 0x%X of station %d "
-						"and Vehicle %d at going to 0x%X! (don't panic)", (v->cargo_type == CT_PASSENGERS) ? "Bus" : "Truck",
-						rs->xy, st->index, v->unitnumber, v->dest_tile);
-					v->u.road.slot = NULL;
-					v->u.road.slot_age = 0;
+				const Vehicle *v = GetVehicle(rs->slot[k]);
+
+				if (v->type != VEH_Road || v->u.road.slot != rs) {
+					DEBUG(ms, 0) (
+						"Multistop: Orphaned %s slot at 0x%X of station %d (don't panic)",
+						(rst == RS_BUS) ? "bus" : "truck", rs->xy, st->index);
 					rs->slot[k] = INVALID_SLOT;
 				}
 			}