fixed a bug in PrismaticJoint::setMotorEnabled where it ignored the argument passed

This commit is contained in:
Bill Meltsner
2010-02-09 12:39:05 -05:00
parent 3ed9823152
commit dd85250180
+1 -1
View File
@@ -60,7 +60,7 @@ namespace box2d
void PrismaticJoint::setMotorEnabled(bool motor)
{
return joint->EnableMotor(true);
return joint->EnableMotor(motor);
}
bool PrismaticJoint::isMotorEnabled() const