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,7 +1077,7 @@ FGPUIDialog::makeObject (SGPropertyNode *props, int parentWidth, int parentHeigh
|
|||
LogList* obj = new LogList(x, y, width, height, 20);
|
||||
string logClass = props->getStringValue("logclass");
|
||||
if (logClass == "terrasync") {
|
||||
simgear::SGTerraSync* tsync = (simgear::SGTerraSync*) globals->get_subsystem("terrasync");
|
||||
auto tsync = globals->get_subsystem<simgear::SGTerraSync>();
|
||||
if (tsync) {
|
||||
obj->setBuffer(tsync->log());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue