diff --git a/src/sbbs3/userlist/SBBS_User_ListMain.cpp b/src/sbbs3/userlist/SBBS_User_ListMain.cpp index e0a1207f474935604fa33aabb29c92419b559e4a..ed84b402d11b25048164cb9338b409c86750cdcd 100644 --- a/src/sbbs3/userlist/SBBS_User_ListMain.cpp +++ b/src/sbbs3/userlist/SBBS_User_ListMain.cpp @@ -310,6 +310,9 @@ void SBBS_User_ListFrame::OnQVChoiceSelect(wxCommandEvent& event) wxArrayInt selections; int set=QVChoice->GetSelection()-1; + if(set<0) + return; + for(;;) { item = UserList->GetNextItem(item, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); if(item==-1)