Don't first increment start order index in AdvanceOrderIndexDeferred

Fixes behaviour of CheckRestartLoadingAtRoadStop
This commit is contained in:
Jonathan G Rennison
2024-03-20 12:36:50 +00:00
parent 4a767b279c
commit 2c63a65b87
2 changed files with 1 additions and 2 deletions

View File

@@ -3422,7 +3422,6 @@ VehicleOrderID ProcessConditionalOrder(const Order *order, const Vehicle *v, Pro
VehicleOrderID AdvanceOrderIndexDeferred(const Vehicle *v, VehicleOrderID index)
{
int depth = 0;
++index;
do {
/* Wrap around. */