mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
again boring misalignment fixes
This commit is contained in:
@@ -705,7 +705,6 @@ inline void CUtlBuffer::GetTypeBin( T &dest )
|
||||
if ( !m_Byteswap.IsSwappingBytes() || ( sizeof( T ) == 1 ) )
|
||||
{
|
||||
memcpy(&dest, PeekGet(), sizeof(T) );
|
||||
dest = *(T *)PeekGet();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -735,8 +734,7 @@ inline void CUtlBuffer::GetTypeBin< float >( float &dest )
|
||||
}
|
||||
else
|
||||
{
|
||||
// aligned read
|
||||
dest = *(float *)pData;
|
||||
memcpy( &dest, (void*)pData, sizeof(float) );
|
||||
}
|
||||
if ( m_Byteswap.IsSwappingBytes() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user