From c35835f5d847480864c067cb674af4af4f62c026 Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Windows)" <rob@synchro.net> Date: Sat, 16 Sep 2023 23:23:47 -0700 Subject: [PATCH] The first argument to sbbs_t::uselect() is actually a boolean --- src/sbbs3/con_hi.cpp | 2 +- src/sbbs3/sbbs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbbs3/con_hi.cpp b/src/sbbs3/con_hi.cpp index fd071aac47..4d87c4877c 100644 --- a/src/sbbs3/con_hi.cpp +++ b/src/sbbs3/con_hi.cpp @@ -46,7 +46,7 @@ void sbbs_t::redrwstr(char *strin, int i, int l, int mode) } } -int sbbs_t::uselect(int add, uint n, const char *title, const char *item, const uchar *ar) +int sbbs_t::uselect(bool add, uint n, const char *title, const char *item, const uchar *ar) { char str[128]; int i; diff --git a/src/sbbs3/sbbs.h b/src/sbbs3/sbbs.h index 41c053cc3b..065f9a571b 100644 --- a/src/sbbs3/sbbs.h +++ b/src/sbbs3/sbbs.h @@ -958,7 +958,7 @@ public: bool random_menu(const char *code, int mode = 0, JSObject* obj = NULL); bool menu_exists(const char *code, const char* ext=NULL, char* realpath=NULL); - int uselect(int add, uint n, const char *title, const char *item, const uchar *ar); + int uselect(bool add, uint n, const char *title, const char *item, const uchar *ar); uint uselect_total = 0, uselect_num[500]{}; int mselect(const char *title, str_list_t list, unsigned max_selections, const char* item_fmt, const char* selected_str, const char* unselected_str, const char* prompt_fmt); -- GitLab