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 Vessel:isdead #2070

Merged
merged 1 commit into from
Jul 21, 2017
Merged

Conversation

hvacengi
Copy link
Member

@hvacengi hvacengi commented Jul 19, 2017

Fixes #2068

VesselTarget.cs

  • Add a null check to the ISDEAD suffix because we now have a legitimate
    chance for Vessel to be null.

This may still have unintended consequences of other suffixes throwing errors. An alternative would be to not set Vessel to null in the Destroy event handler.

VesselTarget.cs
* Add a null check to the ISDEAD suffix because we now have a legitimate
chance for Vessel to be null.
@Dunbaratu Dunbaratu merged commit 2ccb62e into KSP-KOS:develop Jul 21, 2017
@hvacengi hvacengi deleted the issue-2068-vessel_isdead branch August 3, 2017 02:37
@Dunbaratu Dunbaratu added this to the v1.1.2.0 milestone Sep 13, 2017
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.

Vessel:isdead throws error if the vessel has docked
2 participants