diff options
author | Simon Howard | 2011-04-04 20:12:59 +0000 |
---|---|---|
committer | Simon Howard | 2011-04-04 20:12:59 +0000 |
commit | eac4192d1bd74b61475ecfd3d5bee703b68ec09d (patch) | |
tree | 5e1abaa174a3a40c4a2572d6ba4bd88d89c04509 | |
parent | fe9fc9e1078f720d8c869106ea1f93e17ee2b56f (diff) | |
download | chocolate-doom-eac4192d1bd74b61475ecfd3d5bee703b68ec09d.tar.gz chocolate-doom-eac4192d1bd74b61475ecfd3d5bee703b68ec09d.tar.bz2 chocolate-doom-eac4192d1bd74b61475ecfd3d5bee703b68ec09d.zip |
Fix crash.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2322
-rw-r--r-- | textscreen/txt_table.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/textscreen/txt_table.c b/textscreen/txt_table.c index b9d727a3..7a8624f0 100644 --- a/textscreen/txt_table.c +++ b/textscreen/txt_table.c @@ -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. |