Skip to content

Commit

Permalink
use JNI_TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
obigu committed Jan 27, 2025
1 parent 6fbccd4 commit 1c5146a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class CustomContactFilter: public b2ContactFilter
virtual bool ShouldCollide(b2Fixture* fixtureA, b2Fixture* fixtureB)
{
if( useDefaultContactFilter == true )
if( useDefaultContactFilter == JNI_TRUE )
return b2ContactFilter::ShouldCollide( fixtureA, fixtureB );
else if( shouldCollideID != 0 )
return env->CallBooleanMethod( obj, shouldCollideID, (jlong)fixtureA, (jlong)fixtureB );
Expand Down

0 comments on commit 1c5146a

Please sign in to comment.