"nine" (via IRC):
don't crash if gui subsystem isn't available yet
This commit is contained in:
parent
0eef853caa
commit
8d681fd6de
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue