Browse Source

Fix faulty assertion in BulletTranslationalLimitMotor (with thanks to ThomasEgi)

rdb 10 years ago
parent
commit
428f4ce050
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/bullet/bulletTranslationalLimitMotor.I

+ 1 - 1
panda/src/bullet/bulletTranslationalLimitMotor.I

@@ -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];
 }