Skip to content

Commit

Permalink
glue: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 14, 2024
1 parent 6da447a commit f4effd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ JNIEXPORT jboolean JNICALL Java_com_jme3_bullet_objects_PhysicsSoftBody_isCollis
ASSERT_CHK(pEnv, pRigidBody->getInternalType()
& btCollisionObject::CO_RIGID_BODY, JNI_FALSE);

btAlignedObjectArray<const class btCollisionObject *> cdos
btAlignedObjectArray<const btCollisionObject *> cdos
= pSoftBody->m_collisionDisabledObjects;
int cdoIndex = cdos.findLinearSearch(pRigidBody);
bool allowed = (cdoIndex == cdos.size());
Expand Down
2 changes: 1 addition & 1 deletion src/main/native/glue/jmeCollisionSpace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ bool jmeFilterCallback::needBroadphaseCollision(btBroadphaseProxy *pProxy0,
* constructor:
*/
jmeCollisionSpace::jmeCollisionSpace(JNIEnv *pEnv, jobject javaSpace) {
this->m_pCreateEnv = pEnv;
m_pCreateEnv = pEnv;
attachThread();

m_javaSpace = pEnv->NewWeakGlobalRef(javaSpace); // TODO leak
Expand Down

0 comments on commit f4effd5

Please sign in to comment.