#include <Airports/simple.hxx>
#include <ATC/CommStation.hxx>
-
-FGATCDialogNew *currentATCDialog;
+using std::string;
static SGPropertyNode *getNamedNode(SGPropertyNode *prop, const char *name)
{
const char *dialog_name = "atc-dialog";
_gui = (NewGUI *)globals->get_subsystem("gui");
+ if (!_gui) {
+ return;
+ }
+
SGPropertyNode_ptr dlg = _gui->getDialogProperties(dialog_name);
if (!dlg)
return;