Fixed ChainShape:setPreviousVertex.

This commit is contained in:
Alex Szpakowski
2016-07-28 18:08:27 -03:00
parent f4999bd2c7
commit 0a534d4751
+1 -1
View File
@@ -64,7 +64,7 @@ void ChainShape::setPreviousVertex(float x, float y)
} }
b2Vec2 v(x, y); b2Vec2 v(x, y);
b2ChainShape *c = (b2ChainShape *)shape; b2ChainShape *c = (b2ChainShape *)shape;
c->SetNextVertex(Physics::scaleDown(v)); c->SetPrevVertex(Physics::scaleDown(v));
} }
EdgeShape *ChainShape::getChildEdge(int index) const EdgeShape *ChainShape::getChildEdge(int index) const