We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8962438 commit 6f266e3Copy full SHA for 6f266e3
Source/RunActivity/Viewer3D/Cameras.cs
@@ -1112,7 +1112,7 @@ protected override void OnActivate(bool sameCamera)
1112
SetCameraCar(GetCameraCars().Last());
1113
oldCarPosition = 0;
1114
}
1115
- else if (isVisibleTrainCarViewerOrWebpage && carPosition >= 0)
+ else if (carPosition < trainCars.Count && isVisibleTrainCarViewerOrWebpage && carPosition >= 0)
1116
{
1117
SetCameraCar(trainCars[carPosition]);
1118
oldCarPosition = carPosition;
0 commit comments