not working, assert failure

error is inside for loop of scene destructor