ref: d7ef9e1512b2a7db8cde69124fcf60bd8b912a0e
parent: 1f757ef1e2dfb3d8e03834c20ddcb8ead6fed021
author: Simon Howard <[email protected]>
date: Tue Sep 19 19:20:14 EDT 2006
'widgets' variable was used uninitialised. For some reason this didn't always crash! Subversion-branch: /trunk/chocolate-doom Subversion-revision: 624
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -307,11 +307,11 @@
// Draw an action area, if we have one
+ widgets = (txt_widget_t *) window;
+
if (widgets->y + widgets->h < window->window_y + window->window_h - 1)
{
// Separator for action area
-
- widgets = (txt_widget_t *) window;
TXT_DrawSeparator(window->window_x, widgets->y + widgets->h,
window->window_w);