Browse Source

Fixed ChainShape:setPreviousVertex.

Alex Szpakowski 9 years ago
parent
commit
0a534d4751
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/physics/box2d/ChainShape.cpp

+ 1 - 1
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