mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Fix faulty assertion in BulletTranslationalLimitMotor (with thanks to ThomasEgi)
This commit is contained in:
parent
5b4b6ced70
commit
428f4ce050
@ -177,7 +177,7 @@ set_stop_erp(const LVecBase3 &erp) {
|
|||||||
INLINE int BulletTranslationalLimitMotor::
|
INLINE int BulletTranslationalLimitMotor::
|
||||||
get_current_limit(int axis) const {
|
get_current_limit(int axis) const {
|
||||||
|
|
||||||
nassertr((0 <- axis) && (axis <=2), false);
|
nassertr((0 <= axis) && (axis <= 2), false);
|
||||||
return _motor.m_currentLimit[axis];
|
return _motor.m_currentLimit[axis];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user