I’m not sure why it’s doing this, it should be working but according to the engine it fails while trying to add a new object to a vector that I’ve made.
All I’m doing before it fails is one time through my for loop.
for(int i = 0; i < 15; i++)
GameSpot* newSpot = new GameSpot(i+1);
Not sure but it seems to be failing when it’s pushing back on the vector. This is all that’s happening before the second loop. All “GameSpot(i+1)” is doing is putting a number in the object’s variable.
When it fails at the bottom of Xcode it says “GDB: Program received signal:”EXC_BAD_ACCESS“”.
Anyone able to point me in the right direction? I’m at a loss here. I can give any more information that’s needed.