for (std::vector<object*>::iterator it = object_list_depth.end(); it != object_list_depth.begin(); it--)
if((*it)!=NULL && (*it)->active) (*it)->draw();//Vector iterator is not dereferencable
for (std::vector<object*>::iterator it = object_list_depth.begin(); it != object_list_depth.end(); it++)
if((*it)!=NULL && (*it)->active) (*it)->draw();