1
0
Fork 0

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:
James Turner 2022-09-12 13:31:43 +01:00
parent 5acf2e26d0
commit 93cb7e1e93

View file

@ -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")) {