mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
AvatarRig: fix for crash when index was -1
This commit is contained in:
parent
8d16f60b15
commit
2318e48fa8
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
/// Updates the state of the joint at the specified index.
|
||||
void AvatarRig::updateJointState(int index, glm::mat4 rootTransform) {
|
||||
if (index < 0 && index >= _jointStates.size()) {
|
||||
if (index < 0 || index >= _jointStates.size()) {
|
||||
return; // bail
|
||||
}
|
||||
JointState& state = _jointStates[index];
|
||||
|
|
Loading…
Reference in a new issue