Error reports: set context before loading FGFX
Set the relevant context property before loading FGFX, so fx-load errors are correctly attributed to the aircraft.
This commit is contained in:
parent
5acf2e26d0
commit
93cb7e1e93
1 changed files with 1 additions and 1 deletions
|
@ -152,9 +152,9 @@ FGAircraftModel::init ()
|
|||
return;
|
||||
}
|
||||
|
||||
simgear::ErrorReportContext ec("primary-aircraft", "yes");
|
||||
_fx = new FGFX("fx");
|
||||
_fx->init();
|
||||
simgear::ErrorReportContext ec("primary-aircraft", "yes");
|
||||
|
||||
SGPropertyNode_ptr sim = fgGetNode("/sim", true);
|
||||
for (auto model : sim->getChildren("model")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue