Skip to content

Commit

Permalink
Fix compile on ASW
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Dec 7, 2024
1 parent 3d74a99 commit b156d82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vphysics_jolt/vjolt_debugrender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ void JoltPhysicsDebugRenderer::DrawGeometry( JPH::Mat44Arg inModelMatrix, const

bool bForceWireFrame = vjolt_debugrender_wireframe.GetInt() == 2;

for (IMesh* pMesh : *batch)
for (uint i = 0; i < batch->Count(); i++)
{
DebugOverlayMeshDesc_t desc =
{
.pMesh = pMesh,
.pMesh = batch->GetMesh(i),
.matTransform = sourceMatrix,
.flDuration = -1.0f,
.bIgnoreZ = false,
Expand Down
4 changes: 2 additions & 2 deletions vphysics_jolt/vjolt_debugrender.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class JoltPhysicsDebugRenderer final : public JPH::DebugRenderer

void AddMesh( IMesh* pMesh ) { m_Meshes.AddToTail( pMesh ); }

auto begin() const { return m_Meshes.begin(); }
auto end() const { return m_Meshes.end(); }
uint Count() const { return m_Meshes.Count(); }
IMesh* GetMesh(uint i) const { return m_Meshes[i]; }

private:
CUtlVector<IMesh*> m_Meshes;
Expand Down

0 comments on commit b156d82

Please sign in to comment.