Skip to content

Commit

Permalink
fix first run no existing data
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikx committed Apr 28, 2020
1 parent 87bb8a2 commit 54f6917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PersistentData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static List<dynamic> LoadPersistentData(string path = "./Data.json")
{
List<dynamic> dataLoaded = new List<dynamic>()
{
{ new Dictionary<string, string>() }, { new Dictionary<string, string>() }, { new Dictionary<string, int>() } //create data structure in case file doesn't exist. prevent nullreferenceexception
{ new Dictionary<string, object>() }, { new Dictionary<string, object>() }, { new Dictionary<string, object>() } //create data structure in case file doesn't exist. prevent nullreferenceexception
};
try
{
Expand Down

0 comments on commit 54f6917

Please sign in to comment.