void DelChest(int x, int y) { for (std::vector<Chest>::iterator i = chests.begin(); i != chests.end(); ++i) { if (i->x != x || i->y != y) { continue; } chests.erase(i); } }