fix: use correct call to get the B constraint in physics

Thanks @ivysnow

Github pull request #15138
This commit is contained in:
Ricardo Quesada 2016-03-17 07:07:17 -07:00
parent c9306a053f
commit c4658b0e50
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ static Color4F CONSTRAINT_COLOR(0, 1, 0, 0.5);
static void DrawConstraint(cpConstraint *constraint, DrawNode *renderer)
{
cpBody *body_a = cpConstraintGetBodyA(constraint);
cpBody *body_b = cpConstraintGetBodyA(constraint);
cpBody *body_b = cpConstraintGetBodyB(constraint);
if(cpConstraintIsPinJoint(constraint))
{