Fix crash.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2322
This commit is contained in:
parent
fe9fc9e107
commit
eac4192d1b
1 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue