Browse Source

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

Bill Meltsner 15 years ago
parent
commit
dd85250180
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/physics/box2d/PrismaticJoint.cpp

+ 1 - 1
src/modules/physics/box2d/PrismaticJoint.cpp

@@ -60,7 +60,7 @@ namespace box2d
 
 	void PrismaticJoint::setMotorEnabled(bool motor)
 	{
-		return joint->EnableMotor(true);
+		return joint->EnableMotor(motor);
 	}
 
 	bool PrismaticJoint::isMotorEnabled() const