Original Post
I've been debugging my engine off and on all night when I made an odd observation: when you malloc something, the constructor is never called! For example: Seeing as I'm a die-hard C programmer and shudder to think of anyone but me messing around with my memory allocation, is there any way to call the default/any constructor after mallocing? Or is it necessary to use the new keyword?
//creates a new instance of Octtree and calls the default constructor
Octtree *tree = new Octtree()
//Allocates memory for an Octtree but no constructor call
Octtree *tree = (Octtree *) malloc(sizeof(Octtree))
//Allocates memory and sets all pointers to null, but still doesn't call default constructor
Octtree *tree = (Octtree *) malloc(sizeof(Octtree))
ZeroMemory(tree, sizeof(Octtree))