This is another one best left for Thorsten, but.
- Code: Select all
mnt/IDrive/FG/Aircraft/Development Aircraft/SpaceShuttle/Nasal/PFD/PFD_main.nas:
567 {
568 if (v.getValue())
569: me.pfd_button_pushed = v.getValue();
570 else
571 {
572: printf("%s: Button %d",me.designation, me.pfd_button_pushed);
573: me.PFD.notifyButton(me.pfd_button_pushed);
574: me.pfd_button_pushed = 0;
575 }
576 }
...
596
597
598: me.PFD.pfd_button_pushed = 0;
This is the only references to pfd_button_pushed and I can't tell if
me.PFD.pfd_button_pushed = 0;
is the correct space to initialize me.pfd_button_pushed.
Because, according to the line number of the error (572) it is when trying to use the variable me.pfd_button_pushed in the print statement
printf("%s: Button %d",me.designation, me.pfd_button_pushed);
where the error is.
You could simply comment out the printf statement and see if that gets rid of the error and all else should work, as it is appears to only be debug info?
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q