summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vehicle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vehicle.c b/vehicle.c
index 5b0d9a960..4f1894322 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -548,6 +548,7 @@ void DeleteVehicle(Vehicle *v)
u = v->next;
has_artic_part = EngineHasArticPart(v);
DeleteName(v->string_id);
+ if (v->type == VEH_Road) ClearSlot(v);
v->type = 0;
UpdateVehiclePosHash(v, INVALID_COORD, 0);
v->next_hash = INVALID_VEHICLE;