summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/curses/gui-curses-chat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c
index 5ed4b8cef..ff7c74f05 100644
--- a/src/gui/curses/gui-curses-chat.c
+++ b/src/gui/curses/gui-curses-chat.c
@@ -1516,7 +1516,8 @@ gui_chat_draw (struct t_gui_buffer *buffer, int clear_chat)
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window)
{
if ((ptr_win->buffer->number == buffer->number)
- && (ptr_win->win_chat_x >= 0) && (ptr_win->win_chat_y >= 0))
+ && (ptr_win->win_chat_x >= 0) && (ptr_win->win_chat_y >= 0)
+ && (GUI_WINDOW_OBJECTS(ptr_win)->win_chat))
{
gui_window_coords_alloc (ptr_win);