Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addComponent()/removeComponent() should not crash #15932

Closed
ricardoquesada opened this issue Jun 22, 2016 · 1 comment
Closed

addComponent()/removeComponent() should not crash #15932

ricardoquesada opened this issue Jun 22, 2016 · 1 comment
Assignees
Milestone

Comments

@ricardoquesada
Copy link
Contributor

From forum: http://discuss.cocos2d-x.org/t/cocos2d-x-node-sprite-anchor-points-and-removing-physicsbody-bugs/29875/33

PhysicsBody *pb=PhysicsBody::createBox(Size(15,5),PhysicsMaterial(0.1f,0.0f,1.0f));
this->addComponent(pb);
this->removeComponent(pb); // I get EXC_BAD_ACCESS error
ricardoquesada added a commit to ricardoquesada/cocos2d-x that referenced this issue Jun 22, 2016
the body in the world was not being "null"ed.

Github issue cocos2d#15932
@ricardoquesada ricardoquesada self-assigned this Jun 22, 2016
@ricardoquesada ricardoquesada added this to the next milestone Jun 22, 2016
@ricardoquesada
Copy link
Contributor Author

fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant