mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
fixed a bug in PrismaticJoint::setMotorEnabled where it ignored the argument passed
This commit is contained in:
@@ -60,7 +60,7 @@ namespace box2d
|
||||
|
||||
void PrismaticJoint::setMotorEnabled(bool motor)
|
||||
{
|
||||
return joint->EnableMotor(true);
|
||||
return joint->EnableMotor(motor);
|
||||
}
|
||||
|
||||
bool PrismaticJoint::isMotorEnabled() const
|
||||
|
||||
Reference in New Issue
Block a user