Fix crash.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2322
This commit is contained in:
Simon Howard 2011-04-04 20:12:59 +00:00
parent fe9fc9e107
commit eac4192d1b

View file

@ -176,7 +176,10 @@ void TXT_AddWidget(TXT_UNCAST_ARG(table), TXT_UNCAST_ARG(widget))
// Maintain parent pointer.
widget->parent = &table->widget;
if (widget != NULL)
{
widget->parent = &table->widget;
}
}
// Add multiple widgets to a table.