diff --git a/src/bbs_list.c b/src/bbs_list.c index ad86467..db63170 100644 --- a/src/bbs_list.c +++ b/src/bbs_list.c @@ -259,8 +259,9 @@ void bbs_list() { } redraw = 1; } else if (tolower(c) == 'd') { - struct bbs_list_entry_t *entry = ptr_vector_del(&entries, selected); + struct bbs_list_entry_t *entry = ptr_vector_get(&entries, selected); if (delete_bbs(entry->id)) { + ptr_vector_del(&entries, selected); free(entry->bbsname); free(entry->sysopname); free(entry->telnet);