Skip to content

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

Open
@ScottAlexanderCameron

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.

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