Skip to content

Commit 4db8f89

Browse files
committed
Fixed quaternion array access #942
1 parent 9ffa3f8 commit 4db8f89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

glm/detail/type_quat.inl

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ namespace detail
7474
GLM_FUNC_QUALIFIER GLM_CONSTEXPR T & qua<T, Q>::operator[](typename qua<T, Q>::length_type i)
7575
{
7676
assert(i >= 0 && i < this->length());
77-
return (&w)[i];
77+
return (&x)[i];
7878
}
7979

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

8787
// -- Implicit basic constructors --

0 commit comments

Comments
 (0)