(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..)
replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
truelight 20 years ago
parent db16262698
commit 60204bd309

@ -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…
Cancel
Save