I came across this function that I'm having a hard time with
the syntax
std::vector<std::shared_ptr<GameObject>>* Worldmap is used on almost all
of the parameters in the game, so how is it used?
void GameObject::destroyPotion(std::vector<std::shared_ptr<GameObject>>* Worldmap){
std::shared_ptr<GameObject> del;
for (auto& obj : *Worldmap){
if (dynamic_cast<PotionPickUp*>(obj.get()))
del = obj;
}
Static::toDelete.push_back(del);
}