I don’t know if this is a bug or I’m doing something wrong.
I have a struct list that stores which characters follow which. I can add to this struct but when I try to remove characters, it only removes half at a time.
This is the code:
The struct is “Follow List” and is just an array of 2 actors. The struct takes in the “Leader” and the “Followers” like so:
Leader 1 | Follower 1
Leader 1 | Follower 2
Leader 1 | Follower 3
Leader 2 | Follower 4
Leader 2 | Follower 5
And the idea for stopping the followers from following was to remove the leader entries.
But for some reason, it only removes half of the entries at a time.
The way I’m working around this is by running it 5 times in a row.
Is this a bug?