Actually, using list in this way is not a very good idea. List objcts are not supposed to be created using new (and destroyed using delete) - or course they can, but if you just add an instance of the list to your class then all the creation/destruction of the list object will be automatic (far superio method, because you can't forget something which is automaticly done for you). Why don't you write
#include <list> // don't forget thisclass terrainchunk{public: // ***** ICKS! public member!?!?!? int List; float Radius; //denna räknas ut beroende på högsta och lägsta punkten osv. minst 5.6*TerrainScale dock.vector3d CenterPos; list<Basic3dObject> Children; // no pointer terrainchunk() { List=Radius=0; CenterPos.Set(0,0,0); // Children = new list<Basic3dObject>; // don't need that anymore };};
Regards,