History

improved index sanity checking

Andrew Meadows committed 12 years ago

Commit cd7da201 parent 5e494d51 file · +1 −1Browse files

Showing the changes to interface/src/avatar/SkeletonModel.cpp (1 of 1 file). Show all

Unified · Split

interface/src/avatar/SkeletonModel.cpp+1−1
@@ -91,7 +91,7 @@ bool SkeletonModel::render(float alpha) { · 90 unmodified lines
9191 }
9292
9393 void SkeletonModel::getHandShapes(int jointIndex, QVector<const Shape*>& shapes) const {
94− if (jointIndex == -1) {
94+ if (jointIndex < 0 || jointIndex >= int(_shapes.size())) {
9595 return;
9696 }
9797 if (jointIndex == getLeftHandJointIndex()

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t