summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'order_cmd.c')
-rw-r--r--order_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/order_cmd.c b/order_cmd.c
index 10c80048d..2ce7da4d6 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -327,6 +327,8 @@ void BackupVehicleOrders(Vehicle *v, BackuppedOrders *bak)
do {
*os++ = *sched++;
} while (sched->type != OT_NOTHING);
+ /* Make sure the last item is OT_NOTHING */
+ os->type = OT_NOTHING;
}
}