Showing the changes to interface/src/avatar/SkeletonModel.cpp (1 of 1 file). Show all
Unified · Split
| @@ -91,7 +91,7 @@ bool SkeletonModel::render(float alpha) { · 90 unmodified lines | ||
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | void SkeletonModel::getHandShapes(int jointIndex, QVector<const Shape*>& shapes) const { |
| 94 | − if (jointIndex == -1) { | |
| 94 | + if (jointIndex < 0 || jointIndex >= int(_shapes.size())) { | |
| 95 | 95 | return; |
| 96 | 96 | } |
| 97 | 97 | if (jointIndex == getLeftHandJointIndex() |