Skip to content

Commit ea2738c

Browse files
authored
Merge pull request #651 from twpol/feature/update-json-reader-usage
fix: Update existing JsonReader loading code for new array handling
2 parents 50f4362 + 44bf0dc commit ea2738c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Source/Orts.Formats.OR/ClocksFile.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ protected virtual bool TryParse(JsonReader item)
6969
switch (item.Path)
7070
{
7171
case "":
72+
case "[]":
7273
// Ignore these items.
7374
break;
7475

Source/Orts.Formats.OR/WeatherFile.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ protected virtual bool TryParse(JsonReader item)
4747
switch (item.Path)
4848
{
4949
case "":
50+
case "Changes[]":
5051
case "Changes[].":
5152
// Ignore these items.
5253
break;

0 commit comments

Comments
 (0)