This commit is contained in:
Dries Van Schuylenbergh
2023-04-08 11:31:24 +02:00
parent 8670fcc4ce
commit f5615bbef3
2 changed files with 9 additions and 1 deletions

View File

@@ -277,7 +277,7 @@ public class PersistentDataController
{
string text = File.ReadAllText(PATH);
SavedDataStructure newJson = JsonUtility.FromJson<SavedDataStructure>(text);
if (newJson == null || newJson.version < VERSION)
if (newJson == null || newJson.version != VERSION)
goto failed;
json = newJson;