summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
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
commit5d02a2c2955cb7b14600d184e3a5c475f4a8199f (patch)
tree9c512d5e639afc9f332ae81abbd6ef4a0a4ed490 /roadveh_cmd.c
parent7ef681eaed3dae29c3145829aab37a78b30b83bd (diff)
downloadopenttd-5d02a2c2955cb7b14600d184e3a5c475f4a8199f.tar.xz
(svn r2169) -Fix: Doing the slot clearing also for crashed road vehicles (c.f. previous commit)
Diffstat (limited to 'roadveh_cmd.c')
-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);
}