Skip to content

Commit

Permalink
Train: fix loop not updating index
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgit committed Sep 12, 2024
1 parent 8644ea9 commit a5c9ed4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/src/train/train.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@ void Train::setSpeed(const SpeedPoint& speedPoint)
for(const auto& vehicle : m_poweredVehicles)
{
if(vehicle == m_delayedApplyLoco)
{
locoIdx++;
continue; // This loco will be set later
}

// TODO: support arbitrary speed step max
driveLocomotive(vehicle,
Expand Down

0 comments on commit a5c9ed4

Please sign in to comment.