summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-09-19 23:20:14 +0000
committerSimon Howard2006-09-19 23:20:14 +0000
commitd7ef9e1512b2a7db8cde69124fcf60bd8b912a0e (patch)
tree70585d3de8f5039746f9908da4446a6ffa7256b4
parent1f757ef1e2dfb3d8e03834c20ddcb8ead6fed021 (diff)
downloadchocolate-doom-d7ef9e1512b2a7db8cde69124fcf60bd8b912a0e.tar.gz
chocolate-doom-d7ef9e1512b2a7db8cde69124fcf60bd8b912a0e.tar.bz2
chocolate-doom-d7ef9e1512b2a7db8cde69124fcf60bd8b912a0e.zip
'widgets' variable was used uninitialised. For some reason this didn't
always crash! Subversion-branch: /trunk/chocolate-doom Subversion-revision: 624
-rw-r--r--textscreen/txt_window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c
index e25cefc7..e024cf4e 100644
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -307,12 +307,12 @@ void TXT_DrawWindow(txt_window_t *window, int selected)
// 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);