Skip to content

Commit 82db9a7

Browse files
authored
Merge pull request #402 from mbm-OR/bugfix/Fix-CreateStationStop-Error
Bug fix for https://bugs.launchpad.net/or/+bug/1922000. Train.CreateStationStop crash.
2 parents f199695 + 3d5c934 commit 82db9a7

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)