Fixed bug in sf::Shape

This commit is contained in:
Laurent Gomila 2011-12-04 20:59:26 +01:00
parent 6381d10d40
commit 528961c967

View File

@ -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