diff --git a/vphysics_jolt/vjolt_listener_contact.h b/vphysics_jolt/vjolt_listener_contact.h index 4979d7d..cf4f095 100644 --- a/vphysics_jolt/vjolt_listener_contact.h +++ b/vphysics_jolt/vjolt_listener_contact.h @@ -552,7 +552,7 @@ private: { for ( uint32 thread = m_Mask; thread; thread &= thread - 1 ) { - const uint32 i = tzcnt( thread ); + const uint32 i = JPH::CountTrailingZeros( thread ); for ( auto &event : m_Events[ i ] ) func( event );