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

ECS::makeEntity does not remove created components on failure #8

Open
ScottAlexanderCameron opened this issue Feb 18, 2019 · 0 comments

Comments

@ScottAlexanderCameron
Copy link

ECS::makeEntity calls addComponentInternal within a loop to add components. If one of the components is not of a valid type, the newly created entity is deleted and the function returns NULL_ENTITY_HANDLE. However any components created before the invalid component was encountered are not removed.

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