Skip to content
New issue

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

Bug: Entity uuid never reassigned when using PooledEngine #82

Closed
Lusito opened this issue Oct 12, 2014 · 1 comment
Closed

Bug: Entity uuid never reassigned when using PooledEngine #82

Lusito opened this issue Oct 12, 2014 · 1 comment
Labels

Comments

@Lusito
Copy link
Contributor

Lusito commented Oct 12, 2014

When an entity gets pooled, the uuid will be set to 0. But the uuid is only ever set in the constructor.
So all recycled entities will have a 0 id.

On a sidenote: The uuid will start at 0, but when the entity gets reset, it will be set to 0 as well. It would be nice to set it to -1 on reset instead.

@dsaltares
Copy link
Member

Thanks for reporting the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants