ref: fe9fc9e1078f720d8c869106ea1f93e17ee2b56f
parent: 9f3f6683d929d118b18e21b06a0b729586569e1a
author: Simon Howard <[email protected]>
date: Mon Apr 4 16:09:42 EDT 2011
Fix crash. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2321
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -43,7 +43,10 @@
// 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)