diff options
author | truelight <truelight@openttd.org> | 2004-12-19 16:26:45 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-19 16:26:45 +0000 |
commit | 44c299ae5d7dd9d21846a622c25aa985127d8d34 (patch) | |
tree | ad426c81725ec0c2e2e64b8bd1aaa777d193841d | |
parent | 182eb874e8ce0c2886ef5dddbdced06fac481af2 (diff) | |
download | openttd-44c299ae5d7dd9d21846a622c25aa985127d8d34.tar.xz |
(svn r1175) -Fix: [ 1086375 ] Backup-order-list was not closed with an OT_NOTHING,
resulting in order-lists mixing together (maybe tnx to Darkvater, not
sure though..)
-rw-r--r-- | order_cmd.c | 2 |
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; } } |