diff options
Diffstat (limited to 'toxcore/group_chats.c')
-rw-r--r-- | toxcore/group_chats.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/group_chats.c b/toxcore/group_chats.c index 17914038..1ec8ede5 100644 --- a/toxcore/group_chats.c +++ b/toxcore/group_chats.c | |||
@@ -787,6 +787,9 @@ static void del_dead_peers(Group_Chat *chat) | |||
787 | delpeer(chat, i); | 787 | delpeer(chat, i); |
788 | } | 788 | } |
789 | 789 | ||
790 | if (chat->group == NULL || i >= chat->numpeers) | ||
791 | break; | ||
792 | |||
790 | if (chat->group[i].deleted) { | 793 | if (chat->group[i].deleted) { |
791 | if (is_timeout(chat->group[i].deleted_time, DEL_PEER_DELAY)) | 794 | if (is_timeout(chat->group[i].deleted_time, DEL_PEER_DELAY)) |
792 | delpeer(chat, i); | 795 | delpeer(chat, i); |