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 nullref in CalculateTotalAeroForce #76

Merged
merged 2 commits into from
Oct 24, 2019
Merged

fix nullref in CalculateTotalAeroForce #76

merged 2 commits into from
Oct 24, 2019

Conversation

parachutingturtle
Copy link

"m is null" is false when "m == null" might actually be true. Probably because MonoBehaviour has an overridden "==" operator.
In any case, according to my tests (when there is a separated craft/debris that is far away), trying to access m.transform throws a nullref even though "m is null" is false.
related: #74

@dkavolis
Copy link
Owner

Thanks for the PR

@dkavolis dkavolis merged commit f47fc98 into dkavolis:master Oct 24, 2019
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