Skip to content

Commit 3d5c934

Browse files
committed
Bug fix for https://bugs.launchpad.net/or/+bug/1922000. Orts.Simulation.Physics.Train.CreateStationStop crash.
1 parent 94ca263 commit 3d5c934

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

Source/Orts.Simulation/Simulation/Physics/Train.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12727,7 +12727,7 @@ public bool CreateStationStop(int platformStartID, int arrivalTime, int departTi
1272712727
{
1272812728
int otherSectionIndex = thisElement.Direction == 0 ?
1272912729
otherPlatform.TCSectionIndex[0] :
12730-
otherPlatform.TCSectionIndex[thisPlatform.TCSectionIndex.Count - 1];
12730+
otherPlatform.TCSectionIndex[otherPlatform.TCSectionIndex.Count - 1];
1273112731
if (otherSectionIndex == beginSectionIndex)
1273212732
{
1273312733
if (otherPlatform.TCOffset[0, thisElement.Direction] < actualBegin)

0 commit comments

Comments
 (0)