From 0a534d47511c9a8f669c74300d6a8f395571d73b Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Thu, 28 Jul 2016 18:08:27 -0300 Subject: [PATCH] Fixed ChainShape:setPreviousVertex. --- src/modules/physics/box2d/ChainShape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/physics/box2d/ChainShape.cpp b/src/modules/physics/box2d/ChainShape.cpp index d55e3920d..273d0ac1d 100644 --- a/src/modules/physics/box2d/ChainShape.cpp +++ b/src/modules/physics/box2d/ChainShape.cpp @@ -64,7 +64,7 @@ void ChainShape::setPreviousVertex(float x, float y) } b2Vec2 v(x, y); b2ChainShape *c = (b2ChainShape *)shape; - c->SetNextVertex(Physics::scaleDown(v)); + c->SetPrevVertex(Physics::scaleDown(v)); } EdgeShape *ChainShape::getChildEdge(int index) const