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

Add isInitialized check to OnDestroy() in EntityComponent #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlexMeesters
Copy link
Contributor

OnDestroy can still get called on components that are disabled by default (have never been activated)

In some cases this causes a race condition where the system has already been destroyed when OnDestroy() is called.
It may be that inactive components (that have never been activated) have a different execution order.

Added isInitialized check to OnDestroy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants