Hello everyone. I seem to be having some difficulty with pointers, and vectors of objects. In the example that I will outline below, we are trying to make a human object that is composed of various regions. The head region will have a different number of bones than another region of the body, so I chose to use a vector of bones for each region. The issue is that when I try accessing the 'skull', it's giving me a read access violation error... Anyways, here is the code that is relevant to the question:
The problem in your human class is that your pointers are not initialized(created)
Is using pointers a requirement? If not get rid of them and you get rid of many problems.