diff options
-rw-r--r-- | src/roadveh_cmd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 14681fc32..214d4f120 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1796,7 +1796,10 @@ again: return false; } - if (v->current_order.IsType(OT_LEAVESTATION) && IsDriveThroughStopTile(v->tile)) v->current_order.Free(); + if (v->current_order.IsType(OT_LEAVESTATION) && IsDriveThroughStopTile(v->tile)) { + v->current_order.Free(); + ClearSlot(v); + } /* Move to next frame unless vehicle arrived at a stop position * in a depot or entered a tunnel/bridge */ |