From 84422b5845544ee3b6619829c187970e3ebb4db9 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Tue, 17 Sep 2013 06:05:31 -0400 Subject: [PATCH] fix --- src/groupchat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/groupchat.c b/src/groupchat.c index 64a726c..e8317e6 100644 --- a/src/groupchat.c +++ b/src/groupchat.c @@ -64,7 +64,7 @@ static void close_groupchatwin(Tox *m, int groupnum) int i; for (i = group_chat_index; i > 0; --i) { - if (groupchats[i-1].chatwin != -1) + if (groupchats[i-1].active) break; }