Skip to content

Commit b2af1f5

Browse files
committed
fix: Correctly update all signals in pre-update
1 parent 40cf742 commit b2af1f5

File tree

1 file changed

+1
-1
lines changed
  • Source/Orts.Simulation/Simulation/Signalling

1 file changed

+1
-1
lines changed

Source/Orts.Simulation/Simulation/Signalling/Signals.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ public void Update(bool preUpdate)
585585
}
586586

587587
updatecount += updatestep;
588-
updatecount = updatecount > totalSignal ? 0 : updatecount;
588+
updatecount = updatecount >= totalSignal ? 0 : updatecount;
589589
}
590590
}
591591

0 commit comments

Comments
 (0)