mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(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..)
This commit is contained in:
parent
182eb874e8
commit
44c299ae5d
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user