Skip to content

Commit 40cf742

Browse files
committed
fix: Only include non-null signals in update
1 parent 1c55709 commit 40cf742

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
@@ -567,7 +567,7 @@ public void Update(bool preUpdate)
567567
// update required part
568568
// in preupdate, process all
569569

570-
int totalSignal = SignalObjects.Length - 1;
570+
int totalSignal = foundSignals;
571571

572572
int updatestep = (totalSignal / 20) + 1;
573573
if (preUpdate)

0 commit comments

Comments
 (0)