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.
This commit is contained in:
Joshua Ashton 2022-09-01 12:29:36 +01:00 committed by GitHub
parent c6c1a6dba1
commit 2812b58680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;