From 54f691752b8656f7db731c35c062539b43ae977c Mon Sep 17 00:00:00 2001 From: Henrik Takset <00heols@gmail.com> Date: Tue, 28 Apr 2020 20:34:10 +0200 Subject: [PATCH] fix first run no existing data --- PersistentData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PersistentData.cs b/PersistentData.cs index 3effe35..c397a28 100644 --- a/PersistentData.cs +++ b/PersistentData.cs @@ -32,7 +32,7 @@ public static List LoadPersistentData(string path = "./Data.json") { List dataLoaded = new List() { - { new Dictionary() }, { new Dictionary() }, { new Dictionary() } //create data structure in case file doesn't exist. prevent nullreferenceexception + { new Dictionary() }, { new Dictionary() }, { new Dictionary() } //create data structure in case file doesn't exist. prevent nullreferenceexception }; try {