I have a vector that stores pointers to many objects instantiated dynamically, and I\'m trying to iterate through the vector and remove certain elements (remove from vector
if((*it)->getXPos() > 1.5f) { delete *it; it = Entities.erase(it); }