Hey everyone! I have a very weird problem.
I have a Boolean Array containing 12 indexes. I have a flagging System which basically saves events that happened either true or false. So when I am initializing all I do is load the game data, get the save game data and set variables.
When I am initializing, which has a for each loop, looping through a different array and based on their values, I set the boolean at the same index to their values. When I do that, I have all 12 indexes. But now it gets weird.
I never changed anything from the array itself. There are no removes, no clears, nothing. But when I am in my LevelBP creating a debug key which prints me the length of the boolean array, it suddenly isn’t 12 anymore but 8. And for the love of god I have no idea what’s happening xD
Anyone else who encountered a similar or even the same issue with arrays suddenly becoming smaller in length?
I appreciate any help I can get
Answering some eventual questions beforehand:
- No indexes have ever been removed
- The Array has never been cleared
- I deleted the Save Game Files already and remade them
- The array has a fixed index count of 12 (13 elements). It never gets expanded or decremented
- The array is never bigger or smaller at any given time unless I make it bigger inside my SaveGame File, increasing the amount of indexes/entries