Fix faulty assertion in BulletTranslationalLimitMotor (with thanks to ThomasEgi)

This commit is contained in:
rdb 2015-11-21 12:55:49 +01:00
parent 5b4b6ced70
commit 428f4ce050

View File

@ -177,7 +177,7 @@ set_stop_erp(const LVecBase3 &erp) {
INLINE int BulletTranslationalLimitMotor::
get_current_limit(int axis) const {
nassertr((0 <- axis) && (axis <=2), false);
nassertr((0 <= axis) && (axis <= 2), false);
return _motor.m_currentLimit[axis];
}