summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-04-08 22:50:22 +0000
committercelestar <celestar@openttd.org>2005-04-08 22:50:22 +0000
commitdbffb060c1d5269dd6ad5bf3adf7335cdd111f5d (patch)
tree9c512d5e639afc9f332ae81abbd6ef4a0a4ed490
parent8f4583b1610dcf848cc45b2714964d9217c60611 (diff)
downloadopenttd-dbffb060c1d5269dd6ad5bf3adf7335cdd111f5d.tar.xz
(svn r2169) -Fix: Doing the slot clearing also for crashed road vehicles (c.f. previous commit)
-rw-r--r--roadveh_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 591bd8879..5accdf632 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -477,6 +477,7 @@ static void RoadVehDelete(Vehicle *v)
BeginVehicleMove(v);
EndVehicleMove(v);
+ ClearSlot(v, v->u.road.slot);
DeleteVehicle(v);
}