I am having an issue with the saving in my sport.
I’ve a serialized class known as Save.
I’ve only recently up to date the script and after testing have found out the trigger.
Earlier than i up to date the script, I had a listing that appeared like:
Checklist<(int a)> myList = new Checklist<(int a)>();
now it seems like:
Checklist<(int a, bool b)> myList = new Checklist<(int a, bool b)>();
When beginning a brand new sport and saving, it is nice. The issue comes from older saves. When i attempt to load an previous save i get “NullReferenceException: Object reference not set to an occasion of an object”. It’s because the previous record is of sort Checklist<(int a)>, and cannot act as a listing of sort Checklist<(int a, bool b)>.
How would I handle these previous save information?
To be trustworthy, i’ve no downside simply clearing previous save information and ranging from right here, nevertheless i wish to know simply in case i replace the sport after launch.