Skip to content

Commit

Permalink
Fix: Issue with empty train folder and hacks enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
leezer3 committed Mar 30, 2022
1 parent 0618581 commit f8d75ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Plugins/Route.CsvRw/Namespaces/NonTrack/Train.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private void ParseTrainCommand(TrainCommand Command, string[] Arguments, int Ind
case TrainCommand.Folder:
case TrainCommand.File:
{
if (Plugin.CurrentOptions.EnableBveTsHacks)
if (Plugin.CurrentOptions.EnableBveTsHacks && Arguments.Length > 0)
{
// BVE seems to allow a relative path to the train from the routefile...
if (Arguments[0].StartsWith(@"..\..\..\BVE\Train\", StringComparison.InvariantCultureIgnoreCase))
Expand Down

0 comments on commit f8d75ae

Please sign in to comment.