X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=libs%2Fsplines%2Fmath_matrix.h;h=b981567e0cd2adf9ad591ad7ded7d4001c8a85e2;hp=b4427dcde922c6159953971174c4b2b595140c6c;hb=a8192282200b4691a016c4f7757638cbb132f2dc;hpb=54a2bda443aace9c00a1615af10cc1dc8b1f0cd1 diff --git a/libs/splines/math_matrix.h b/libs/splines/math_matrix.h index b4427dcd..b981567e 100644 --- a/libs/splines/math_matrix.h +++ b/libs/splines/math_matrix.h @@ -75,8 +75,13 @@ friend mat3_t SkewSymmetric( idVec3 const &src ); ID_INLINE mat3_t::mat3_t() { } -ID_INLINE mat3_t::mat3_t(float src[3][3]) { - memcpy(mat, src, sizeof(float) * 3 * 3); +ID_INLINE mat3_t::mat3_t( float src[ 3 ][ 3 ] ) { + //memcpy( mat, src, sizeof( src ) ); + for( unsigned int i = 0; i < 3; i++ ) { + mat[i].x = src[i][0]; + mat[i].y = src[i][1]; + mat[i].z = src[i][2]; + } } ID_INLINE mat3_t::mat3_t( idVec3 const &x, idVec3 const &y, idVec3 const &z ) {