collide: Use std::swap instead of Swap

Swap is something that was added to Desolation's basetypes.h, not present in SDK 2013.
Just use std::swap from STL.
pull/69/head
Joshua Ashton 7 months ago committed by GitHub
parent c6c1a6dba1
commit 2812b58680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -760,7 +760,7 @@ int JoltPhysicsCollision::CreateDebugMesh( CPhysCollide const *pCollisionModel,
// Swap the winding of the triangles to match original VPhysics behaviour.
for ( int i = 0; i < nAccumTris; i++ )
Swap( pVerts[ ( i * 3 ) + 0 ], pVerts[ ( i * 3 ) + 2 ] );
std::swap( pVerts[ ( i * 3 ) + 0 ], pVerts[ ( i * 3 ) + 2 ] );
*outVerts = pVerts;
return nAccumTris * 3;

Loading…
Cancel
Save