fix crash on login for bad boolean logic

This commit is contained in:
Andrew Meadows 2015-11-18 14:48:59 -08:00
parent 71e4092276
commit 73055a59a7

View file

@ -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];