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