1
0
Fork 0

"nine" (via IRC):

don't crash if gui subsystem isn't available yet
This commit is contained in:
mfranz 2005-11-12 11:40:57 +00:00
parent 0eef853caa
commit 8d681fd6de

View 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;