Why is my program jumping into the copy constructor and wiping out my data?

I found a bug where when a function called Displaylist(N) is called it wipes goes into the copy constructor and wipes out my data. How would i change my copy constructor to not do that?
unknown.png
unknown.png
Was this page helpful?