1
0
Fork 0

Once again, I forgot that we bind() subsystems *before* init().

This commit is contained in:
James Turner 2010-08-01 23:50:52 +01:00
parent 50eb95dcad
commit c61a14afdd

View file

@ -95,6 +95,13 @@ void FGInstrumentMgr::init()
set_subsystem("gps[0]", new GPS(nd));
}
// bind() created instruments before init.
for (unsigned int i=0; i<_instruments.size(); ++i) {
const std::string& nm(_instruments[i]);
SGSubsystem* instr = get_subsystem(nm);
instr->bind();
}
SGSubsystemGroup::init();
}