1
0
Fork 0

Use new-style sub-system lookup

This commit is contained in:
James Turner 2020-08-05 15:15:10 +01:00
parent 31f434d3ad
commit b04a0d74f6

View file

@ -1077,7 +1077,7 @@ 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());
} }