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

Only check for ullage on ModuleEnginesRF #1924

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

Nazfib
Copy link
Contributor

@Nazfib Nazfib commented Dec 10, 2024

When trying to check for ullage on a non-ModuleEnginesRF engine, VesselState sets the reflection fields to null; this causes the autostaging code to spam NREs and refuse to work.

This change makes sure that an engine is a (subclass of) ModuleEnginesRF before trying to access the ullage field.

Fixes #1921

When trying to check for ullage on a non-ModuleEnginesRF engine,
VesselState sets the reflection fields to null; this causes
the autostaging code to spam NREs and refuse to work.

This change makes sure that an engine is a (subclass of) ModuleEnginesRF
before trying to access the ullage field.
@lamont-granquist
Copy link
Collaborator

👍

@lamont-granquist lamont-granquist merged commit 184a534 into MuMech:dev Dec 11, 2024
@Nazfib Nazfib mentioned this pull request Dec 18, 2024
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.

Flying a jet in RP-1 causes autostaging to break until the next game restart.
2 participants