(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 8d09070bb7
commit 348f2d35be
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);