game/client/portal: fix Polyhedron

This commit is contained in:
nillerusr
2022-07-30 02:09:11 +03:00
parent 9c2c7e3529
commit 7268663f24
2 changed files with 11 additions and 7 deletions
@@ -265,7 +265,7 @@ void CStaticCollisionPolyhedronCache::Update( void )
m_BrushPolyhedrons[i] = pDest;
pFinalDest += memRequired;
int memoryOffset = ((uint8 *)pDest) - ((uint8 *)pSource);
intp memoryOffset = ((uint8 *)pDest) - ((uint8 *)pSource);
memcpy( pDest, pSource, memRequired );
//move all the pointers to their new location.
@@ -425,7 +425,7 @@ void CStaticCollisionPolyhedronCache::Update( void )
m_StaticPropPolyhedrons[i] = pDest;
pFinalDest += memRequired;
int memoryOffset = ((uint8 *)pDest) - ((uint8 *)pSource);
intp memoryOffset = ((uint8 *)pDest) - ((uint8 *)pSource);
memcpy( pDest, pSource, memRequired );
//move all the pointers to their new location.