Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -353,7 +353,7 @@ void InputController::update() { · 352 unmodified lines | ||
| 353 | 353 | // TODO for now the InputController is only supporting a JointTracker from a MotionTracker |
| 354 | 354 | MotionTracker* motionTracker = dynamic_cast< MotionTracker*> (DeviceTracker::getDevice(_deviceTrackerId)); |
| 355 | 355 | if (motionTracker) { |
| 356 | − if (_subTrackerId < motionTracker->numJointTrackers()) { | |
| 356 | + if ((int)_subTrackerId < motionTracker->numJointTrackers()) { | |
| 357 | 357 | const MotionTracker::JointTracker* joint = motionTracker->getJointTracker(_subTrackerId); |
| 358 | 358 | |
| 359 | 359 | if (joint->isActive()) { |