summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2011-04-04 20:09:42 +0000
committerSimon Howard2011-04-04 20:09:42 +0000
commitfe9fc9e1078f720d8c869106ea1f93e17ee2b56f (patch)
tree7f47944ef0fe1bd22f73dd7aebdefe4173ba547b
parent9f3f6683d929d118b18e21b06a0b729586569e1a (diff)
downloadchocolate-doom-fe9fc9e1078f720d8c869106ea1f93e17ee2b56f.tar.gz
chocolate-doom-fe9fc9e1078f720d8c869106ea1f93e17ee2b56f.tar.bz2
chocolate-doom-fe9fc9e1078f720d8c869106ea1f93e17ee2b56f.zip
Fix crash.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2321
-rw-r--r--textscreen/txt_window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c
index 7ba11778..ee668175 100644
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -43,7 +43,10 @@ void TXT_SetWindowAction(txt_window_t *window,
// Maintain parent pointer.
- action->widget.parent = &window->table.widget;
+ if (action != NULL)
+ {
+ action->widget.parent = &window->table.widget;
+ }
}
txt_window_t *TXT_NewWindow(char *title)