Skip to content

Throw when despawning all entity of a world with relation involve #53

Description

@warquys
using var world = new World();
var parent = world.Spawn();
var otherParent = world.Spawn();

world.Spawn().Add(0, parent).Add(0, otherParent);
// Crash  VVVVVVV result in an new archetype will iterating over.
world.All.Despawn();
System.InvalidOperationException : Collection was modified after the enumerator was instantiated.
   at System.Collections.Generic.SortedSet`1.Enumerator.MoveNext()
   at fennecs.Query.Truncate(...) in Query.cs:line 415
   at fennecs.Query.Despawn() in Query.cs:line 387

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions