Merge pull request #15982 from mogemimi/fix-typo

Fix typo: destoryMark -> destroyMark
This commit is contained in:
minggo 2016-06-29 09:41:59 +08:00 committed by GitHub
commit feb513c7eb
3 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ PhysicsJoint::PhysicsJoint()
, _world(nullptr)
, _enable(false)
, _collisionEnable(true)
, _destoryMark(false)
, _destroyMark(false)
, _tag(0)
, _maxForce(PHYSICS_INFINITY)
, _initDirty(true)

View File

@ -115,7 +115,7 @@ protected:
bool _enable;
bool _collisionEnable;
bool _destoryMark;
bool _destroyMark;
int _tag;
float _maxForce;

View File

@ -647,7 +647,7 @@ void PhysicsWorld::removeJoint(PhysicsJoint* joint, bool destroy)
return;
}
joint->_destoryMark = destroy;
joint->_destroyMark = destroy;
bool removedFromDelayAdd = false;
auto it = std::find(_delayAddJoints.begin(), _delayAddJoints.end(), joint);
@ -792,7 +792,7 @@ void PhysicsWorld::doRemoveJoint(PhysicsJoint* joint)
joint->getBodyB()->removeJoint(joint);
}
if (joint->_destoryMark)
if (joint->_destroyMark)
{
delete joint;
}