Skip to content

Commit

Permalink
Fix ios runtime error
Browse files Browse the repository at this point in the history
NullReferenceException: Object reference not set to an instance of an object.
  • Loading branch information
rogeraabbccdd committed Jan 21, 2024
1 parent e90692a commit e8503ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TECHMANIA/Assets/Scripts/Serializable/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,11 @@ public PerTrackOptions GetPerTrackOptions(string guid)

private void PreparePerTrackOptionsToSerialize()
{
if (inMemoryPerTrackOptions == null)
{
inMemoryPerTrackOptions = new Dictionary<string, PerTrackOptions>();
}

perTrackOptions = new Dictionary<string, PerTrackOptions>();
foreach (KeyValuePair<string, PerTrackOptions> pair in
inMemoryPerTrackOptions)
Expand Down

0 comments on commit e8503ee

Please sign in to comment.