Skip to content

Commit

Permalink
Fixed bug that crashed LiveSplit with 2 or more identical split names
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyHen committed Oct 7, 2022
1 parent 1b251ec commit a658ecf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions UI/Components/CollectorComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ private object buildLiveRunData()
emulator = run.Metadata.UsesEmulator
};

Dictionary<string, object> runData = new Dictionary<string, object>();
List<object> runData = new List<object>();

foreach (var segment in run)
{
runData.Add(segment.Name, new
runData.Add(new
{
name = segment.Name,
splitTime = segment.SplitTime,
pbSplitTime = segment.PersonalBestSplitTime,
bestPossible = segment.BestSegmentTime,
Expand Down

0 comments on commit a658ecf

Please sign in to comment.