From c9efd252de8765edcda89217f1ce241055a22b80 Mon Sep 17 00:00:00 2001 From: Jeff <alpyne.dreams@gmail.com> Date: Sat, 7 Dec 2024 02:36:22 -0800 Subject: [PATCH] Actually fix compile on ASW --- vphysics_jolt/vjolt_debugrender.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vphysics_jolt/vjolt_debugrender.cpp b/vphysics_jolt/vjolt_debugrender.cpp index ac80112d..7f2b5c77 100644 --- a/vphysics_jolt/vjolt_debugrender.cpp +++ b/vphysics_jolt/vjolt_debugrender.cpp @@ -48,8 +48,8 @@ JoltPhysicsDebugRenderer::~JoltPhysicsDebugRenderer() JoltPhysicsDebugRenderer::BatchImpl::~BatchImpl() { CMatRenderContextPtr pRenderContext(g_pMaterialSystem); - for (IMesh* pMesh : m_Meshes) - pRenderContext->DestroyStaticMesh(pMesh); + for (uint i = 0; i < m_Meshes.Count(); i++) + pRenderContext->DestroyStaticMesh(m_Meshes[i]); } void JoltPhysicsDebugRenderer::DrawLine( JPH::Vec3Arg inFrom, JPH::Vec3Arg inTo, JPH::ColorArg inColor )