Error Averted!
So I had a real doosy, but my uber 1337 skills helped me to fix it. within 30 min. It was a lot of code to sift through (500 lines) so don't hate. ;l
I had a set up like this
Lol. a dollar to anyone who can figure out what the problem would be if I called Render();
If no one figures it out I'll tell you the answer tomorrow! =P
I had a set up like this
Code:
//Assuming B has already been declared and there are no compile errors.
class A
{
B** arrayofB;
int num_of_Bs;
A()
{
B newB(someargs);
arrayofB = new B*[10];
memset(arrayofB+1,0,10-1);//zeros memory of my array (hint: not the prob)
arrayofB[0] = newB;
num_of_Bs = 0;
}
void Render()
{
for(int i = 0; i <= num_of_Bs; i++)
arrayofB[i]->Render();
}
};
If no one figures it out I'll tell you the answer tomorrow! =P


