Use sf::VertexArray.clear instead of .resize(0)

This commit is contained in:
ZXShady 2024-10-04 02:21:06 +01:00 committed by Chris Thrasher
parent ecb945b341
commit cfc43f50a7

View File

@ -203,8 +203,8 @@ void Shape::update()
const std::size_t count = getPointCount();
if (count < 3)
{
m_vertices.resize(0);
m_outlineVertices.resize(0);
m_vertices.clear();
m_outlineVertices.clear();
return;
}