]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/splines/math_matrix.h
[q3map2] Unwind script stack in case of script loading error.
[xonotic/netradiant.git] / libs / splines / math_matrix.h
index 597f1d029085e9c828c330d82275f8970e8139f9..b4427dcde922c6159953971174c4b2b595140c6c 100644 (file)
 #include <string.h>
 #include "math_vector.h"
 
-#ifndef ID_INLINE
-#ifdef _WIN32
-#define ID_INLINE __inline
-#else
-#define ID_INLINE inline
-#endif
-#endif
-
 class quat_t;
 class angles_t;
 
@@ -83,8 +75,8 @@ 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( src ) );
+ID_INLINE mat3_t::mat3_t(float src[3][3]) {
+    memcpy(mat, src, sizeof(float) * 3 * 3);
 }
 
 ID_INLINE mat3_t::mat3_t( idVec3 const &x, idVec3 const &y, idVec3 const &z ) {