Use new-style sub-system lookup
This commit is contained in:
parent
31f434d3ad
commit
b04a0d74f6
1 changed files with 3 additions and 3 deletions
|
@ -1077,9 +1077,9 @@ FGPUIDialog::makeObject (SGPropertyNode *props, int parentWidth, int parentHeigh
|
||||||
LogList* obj = new LogList(x, y, width, height, 20);
|
LogList* obj = new LogList(x, y, width, height, 20);
|
||||||
string logClass = props->getStringValue("logclass");
|
string logClass = props->getStringValue("logclass");
|
||||||
if (logClass == "terrasync") {
|
if (logClass == "terrasync") {
|
||||||
simgear::SGTerraSync* tsync = (simgear::SGTerraSync*) globals->get_subsystem("terrasync");
|
auto tsync = globals->get_subsystem<simgear::SGTerraSync>();
|
||||||
if (tsync) {
|
if (tsync) {
|
||||||
obj->setBuffer(tsync->log());
|
obj->setBuffer(tsync->log());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
FGNasalSys* nasal = (FGNasalSys*) globals->get_subsystem("nasal");
|
FGNasalSys* nasal = (FGNasalSys*) globals->get_subsystem("nasal");
|
||||||
|
|
Loading…
Add table
Reference in a new issue