From 2812b58680d166733f4ba37061a74ae4873374fc Mon Sep 17 00:00:00 2001 From: Joshie Date: Thu, 1 Sep 2022 12:29:36 +0100 Subject: [PATCH] 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. --- vphysics_jolt/vjolt_collide.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vphysics_jolt/vjolt_collide.cpp b/vphysics_jolt/vjolt_collide.cpp index 376c547..42f4be2 100644 --- a/vphysics_jolt/vjolt_collide.cpp +++ b/vphysics_jolt/vjolt_collide.cpp @@ -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;