diff --git a/indra/llmath/llmatrix4a.h b/indra/llmath/llmatrix4a.h index f459e99a1ca5d9d0a0ddf56659b7fd258252beb1..95745f361ee7fc3d02f4ae8954b9500bcb5774a1 100644 --- a/indra/llmath/llmatrix4a.h +++ b/indra/llmath/llmatrix4a.h @@ -276,9 +276,10 @@ class alignas(16) LLMatrix4a } template<int N> - inline LLVector4a getColumn() + inline LLVector4a getColumn() const { LLVector4a v; + v.clear(); v.copyComponent<0>(mMatrix[0].getScalarAt<N>()); v.copyComponent<1>(mMatrix[1].getScalarAt<N>()); v.copyComponent<2>(mMatrix[2].getScalarAt<N>());