From cfc43f50a7a873061b213361cf51135867bfc011 Mon Sep 17 00:00:00 2001 From: ZXShady <153229951+ZXShady@users.noreply.github.com> Date: Fri, 4 Oct 2024 02:21:06 +0100 Subject: [PATCH] Use sf::VertexArray.clear instead of .resize(0) --- src/SFML/Graphics/Shape.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }