1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-20 19:02:41 +01:00

(svn r24446) -Add [FS#5199]: Store more consist properties in order backups.

This commit is contained in:
frosch
2012-07-29 16:48:00 +00:00
parent fcbe53d204
commit 9527bad3a7
6 changed files with 38 additions and 28 deletions

View File

@@ -86,7 +86,7 @@ void OrderBackup::DoRestore(Vehicle *v)
/* Make sure orders are in range */
v->UpdateRealOrderIndex();
v->cur_implicit_order_index = v->cur_real_order_index;
if (v->cur_implicit_order_index >= v->GetNumOrders()) v->cur_implicit_order_index = v->cur_real_order_index;
/* Restore vehicle group */
DoCommand(0, this->group, v->index, DC_EXEC, CMD_ADD_VEHICLE_GROUP);