Minor improvement in VertexArray::getBounds

This commit is contained in:
Laurent Gomila 2012-08-24 16:20:27 +02:00
parent 692240f60d
commit d716b3657c

View File

@ -113,7 +113,7 @@ FloatRect VertexArray::getBounds() const
float right = m_vertices[0].position.x; float right = m_vertices[0].position.x;
float bottom = m_vertices[0].position.y; float bottom = m_vertices[0].position.y;
for (std::size_t i = 0; i < m_vertices.size(); ++i) for (std::size_t i = 1; i < m_vertices.size(); ++i)
{ {
Vector2f position = m_vertices[i].position; Vector2f position = m_vertices[i].position;