Skip to content

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

Description

@ScottAlexanderCameron

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions