NSV - Bug?

Subscribers:
6
Published on ● Video Link: https://www.youtube.com/watch?v=sY3joc12e6I



Duration: 2:01
3 views
0


The setup, I changed the code in add quest script so that it would make a copy of the data structure instead of just moving it. This means that when we check whether or not the quest is already in the list, it will be added again because it's a copy.

So. I made a loop and added two quests a hundred times.

Now, in the the quest manager object, it loops through all the quests in the list, every step. This is what happens when it tries to run it's complex code two hundred times.

Possibly not a problem, because we're probably not going to have two hundred quests, nor will the player be able to have all of those active at once, but this is an issue with how for loops tend to work and I don't know how to optimize it.