Skip to content

Commit 74682f9

Browse files
committed
Merge pull request #101231 from mihe/jolt/init-debug-count
Fix debug contact count not being initialized when using Jolt Physics
2 parents 867425f + 174a2b6 commit 74682f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/jolt_physics/spaces/jolt_contact_listener_3d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class JoltContactListener3D final
9393

9494
#ifdef DEBUG_ENABLED
9595
PackedVector3Array debug_contacts;
96-
std::atomic_int debug_contact_count;
96+
std::atomic_int debug_contact_count = 0;
9797
#endif
9898

9999
virtual void OnContactAdded(const JPH::Body &p_body1, const JPH::Body &p_body2, const JPH::ContactManifold &p_manifold, JPH::ContactSettings &p_settings) override;

0 commit comments

Comments
 (0)