Hello friends, I'm pretty new to C++.
Sorry for the lack of context because I really don't know what causes it to segfault.
Basic data types work, but sf::RectangleShape doesn't? Why is that?
std::array<std::vector<sf::RectangleShape>,3> bricks {{ {},{},{} }};
for (int x {0};x<bricks.size();x++)
{
bricks[x].reserve(4);
for (int y {0}; y<bricks[x].capacity();y++)
{
bricks[x][y].setSize(sf::Vector2f(160.f,40.f));
}
}