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 aircraft undefined at sim startup #131

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

smitty97
Copy link

if the program is running while the sim is starting up, simconnect connects but there is no initial aircraft, and the program would quit.

@maartentamboer
Copy link
Owner

Are these changes for FS2024?

@smitty97
Copy link
Author

smitty97 commented Nov 28, 2024

Not specifically for 2024, but works on either. Check the diff, it's a one-line bug fix, the variable aircraft is null when simconnect starts on sim launch, which causes an exception, so i just set it to "" at its declaration. It's been annoying me for a while in 2020 so I thought i'd try to fix it
the time bits are just for printing sim startup time info

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