From 528961c9674a6040e5f5b3e0c30da8dc785b7c68 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Sun, 4 Dec 2011 20:59:26 +0100 Subject: [PATCH] Fixed bug in sf::Shape --- src/SFML/Graphics/Shape.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SFML/Graphics/Shape.cpp b/src/SFML/Graphics/Shape.cpp index 14688c85f..a238cbfd6 100644 --- a/src/SFML/Graphics/Shape.cpp +++ b/src/SFML/Graphics/Shape.cpp @@ -186,6 +186,7 @@ void Shape::Update() myVertices[count + 1].Position = myVertices[1].Position; // Update the bounding rectangle + myVertices[0] = myVertices[1]; // so that the result of GetBounds() is correct myInsideBounds = myVertices.GetBounds(); // Compute the center and make it the first vertex