mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-16 09:32:57 +02:00
improved index sanity checking
This commit is contained in:
parent
5e494d522d
commit
cd7da205de
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ bool SkeletonModel::render(float alpha) {
|
|||
}
|
||||
|
||||
void SkeletonModel::getHandShapes(int jointIndex, QVector<const Shape*>& shapes) const {
|
||||
if (jointIndex == -1) {
|
||||
if (jointIndex < 0 || jointIndex >= int(_shapes.size())) {
|
||||
return;
|
||||
}
|
||||
if (jointIndex == getLeftHandJointIndex()
|
||||
|
|
Loading…
Reference in a new issue