Skip to content

Commit

Permalink
Added check
Browse files Browse the repository at this point in the history
  • Loading branch information
obigu committed Jan 27, 2025
1 parent 4599d2a commit a089e6a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ class CustomContactFilter: public b2ContactFilter
{
this->env = env;
this->obj = obj;
useDefaultContactFilter = env->CallBooleanMethod( obj, useDefaultContactFilterID );
if( useDefaultContactFilterID != 0 )
useDefaultContactFilter = env->CallBooleanMethod( obj, useDefaultContactFilterID );
}
virtual bool ShouldCollide(b2Fixture* fixtureA, b2Fixture* fixtureB)
Expand Down

0 comments on commit a089e6a

Please sign in to comment.