]> git.mxchange.org Git - flightgear.git/commitdiff
"nine" (via IRC):
authormfranz <mfranz>
Sat, 12 Nov 2005 11:40:57 +0000 (11:40 +0000)
committermfranz <mfranz>
Sat, 12 Nov 2005 11:40:57 +0000 (11:40 +0000)
don't crash if gui subsystem isn't available yet

src/GUI/gui_funcs.cxx

index 9c595bf52d46dfb418d2ad41441bfc513679e86a..784e6c5f48aae7a8c80ed4d12b0f78f3fe38172c 100644 (file)
@@ -162,6 +162,8 @@ const __fg_gui_fn_t __fg_gui_fn[] = {
 void mkDialog (const char *txt)
 {
     NewGUI *gui = (NewGUI *)globals->get_subsystem("gui");
+    if (!gui)
+        return;
     SGPropertyNode_ptr dlg = gui->getDialog("message");
     if (!dlg)
         return;