Skip to content

Crash on changelevel during the particles reset #236

Description

@FreeSlave

Calling delete particle changes the _particles vector (due to how the CMiniMem::Deallocate is implemented) thus invalidating the loop iterator.

for (auto particle : _particles)
{
particle->Die();
delete particle;
}

To reproduce create some particles and change map while particles still exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions