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:
parent
d92da2cb17
commit
967cff2b6f
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue