I've experienced something I've never experienced before. I've used arrays of custom data types before and it gave me no problems. But today when I was working on a new script, I realized that the declaration of an array of custom data types is causing savegame corruption.
As a test, I made a new empty script that extends ObjectReference and tried to make an array out of it and it caused savegame corruption. When I commented out that line, the problem goes away. If I changed the data type to an existing data type (i.e. float, Actor), it works fine too. If I changed the variable to just the datatype itself without the array, there is then no corruption. I've tried changing the datatype to a few other custom data types and some corrupted the save and some didn't.
So next, I decided to change the array variable to a property and the corruption occurs if the array has no elements inside. But if I make it an array of length 1 with a "None" element within, then again the corruption goes away.
I wonder if any one had experienced something like this before?
Also, are there ways to trace what exactly causes a savegame corruption? I couldn't find any trace files in the game folder.
