1
0
Fork 0

src/Model/acmodel.cxx: Fixed broken aircraft sound after change to ordering of subsystems.

Moved creation of FGFX() from FGAircraftModel constructor into
FGAircraftModel::init().

Thanks to Colin Geniet for bug report and suggested fix.
This commit is contained in:
Julian Smith 2021-04-17 19:22:02 +01:00
parent d92da2cb17
commit 967cff2b6f

View file

@ -57,8 +57,6 @@ FGAircraftModel::FGAircraftModel ()
_speed_e(0),
_speed_d(0)
{
_fx = new FGFX("fx");
_fx->init();
}
FGAircraftModel::~FGAircraftModel ()
@ -76,6 +74,8 @@ FGAircraftModel::init ()
return;
}
_fx = new FGFX("fx");
_fx->init();
simgear::ErrorReportContext ec("primary-aircraft", "yes");
SGPropertyNode_ptr sim = fgGetNode("/sim", true);