Matrix4: Fix GetColumn and GetRow code

This commit is contained in:
Lynix 2016-10-27 10:47:17 +02:00
parent f867c20c7c
commit e59bd4ba35
1 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ namespace Nz
} }
#endif #endif
T* ptr = (&m11) + column*4; const T* ptr = (&m11) + column*4;
return Vector4<T>(ptr); return Vector4<T>(ptr);
} }
@ -636,7 +636,7 @@ namespace Nz
} }
#endif #endif
T* ptr = &m11; const T* ptr = &m11;
return Vector4<T>(ptr[row], ptr[row+4], ptr[row+8], ptr[row+12]); return Vector4<T>(ptr[row], ptr[row+4], ptr[row+8], ptr[row+12]);
} }