Skip to content

Commit

Permalink
Fixed quaternion array access #942
Browse files Browse the repository at this point in the history
  • Loading branch information
Groovounet committed Sep 8, 2019
1 parent 9ffa3f8 commit 4db8f89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glm/detail/type_quat.inl
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ namespace detail
GLM_FUNC_QUALIFIER GLM_CONSTEXPR T & qua<T, Q>::operator[](typename qua<T, Q>::length_type i)
{
assert(i >= 0 && i < this->length());
return (&w)[i];
return (&x)[i];
}

template<typename T, qualifier Q>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR T const& qua<T, Q>::operator[](typename qua<T, Q>::length_type i) const
{
assert(i >= 0 && i < this->length());
return (&w)[i];
return (&x)[i];
}

// -- Implicit basic constructors --
Expand Down

0 comments on commit 4db8f89

Please sign in to comment.