We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I came across a somewhat serious bug in Archetypes.cs while working on my fork.
Archetypes.cs
This issue comes from the forward-iteration of the table while it has elements being removed from it. This skips every other Entity.
foreach (var tableWithType in tablesWithType) { for (var i = 0; i < tableWithType.Count; i++) { RemoveComponent(type, tableWithType.Identities[i]); } }
The text was updated successfully, but these errors were encountered:
naive fix:
foreach (var tableWithType in tablesWithType) { for (var i = tableWithType.Count-1; i >= 0; i--) { RemoveComponent(type, tableWithType.Identities[i]); } }
Sorry, something went wrong.
No branches or pull requests
I came across a somewhat serious bug in
Archetypes.cs
while working on my fork.This issue comes from the forward-iteration of the table while it has elements being removed from it. This skips every other Entity.
The text was updated successfully, but these errors were encountered: