diff --git a/src/SFML/Graphics/Shape.cpp b/src/SFML/Graphics/Shape.cpp index e6d576af7..4f6fd617d 100644 --- a/src/SFML/Graphics/Shape.cpp +++ b/src/SFML/Graphics/Shape.cpp @@ -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; }