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

Fix to execution order issue when using SimpleMove from Start() #1

Merged
merged 1 commit into from Sep 21, 2016

Conversation

Elideb
Copy link
Contributor

@Elideb Elideb commented Sep 21, 2016

Initialize SimpleMove.displacements on definition, instead of Start(), to prevent execution order issues when other scripts try to configure SimpleMove in their Start().

If that happens, the user will receive a NullRefException when trying to set a new Move.

…, to prevent execution order issues when other scripts try to configure SimpleMove in their Start().
@glantucan glantucan merged commit 373f6ea into glantucan:master Sep 21, 2016
@glantucan
Copy link
Owner

Oops! Se me olvido ese pequeño detalle. Gracias de nuevo

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.

None yet

2 participants