diff --git a/public/tier1/utlbuffer.h b/public/tier1/utlbuffer.h index fb77b1f8..2f646e5e 100644 --- a/public/tier1/utlbuffer.h +++ b/public/tier1/utlbuffer.h @@ -661,7 +661,7 @@ inline void CUtlBuffer::GetTypeBin< float >( float &dest ) else { // aligned read - Q_memcmp( &dest, (void*)pData, sizeof(float) ); + Q_memcpy( &dest, (void*)pData, sizeof(float) ); } if ( m_Byteswap.IsSwappingBytes() ) {