botl.c follow-up

This commit is contained in:
nhmall
2025-03-05 08:55:27 -05:00
parent 90d240cbb8
commit fd49242015
2 changed files with 4 additions and 3 deletions

View File

@@ -55,7 +55,9 @@ enum any_types {
ANY_ULPTR, /* pointer to unsigned long */
ANY_STR, /* pointer to null-terminated char string */
ANY_NFUNC, /* pointer to function taking no args, returning int */
ANY_MASK32 /* 32-bit mask (stored as unsigned long) */
ANY_MASK32, /* 32-bit mask (stored as unsigned long) */
ANY_INVALID /* leave this last */
};
/* menu return list */

View File

@@ -2562,7 +2562,7 @@ parse_status_hl2(char (*s)[QBUFSZ], boolean from_configfile)
"Satiated", "", "Hungry", "Weak", "Fainting", "Fainted", "Starved"
};
char *tmp, *how;
int sidx = 0, i = -1, dt = -1;
int sidx = 0, i = -1, dt = ANY_INVALID;
int coloridx = -1, successes = 0;
int disp_attrib = 0;
boolean percent, changed, numeric, down, up,
@@ -2830,7 +2830,6 @@ parse_status_hl2(char (*s)[QBUFSZ], boolean from_configfile)
else
hilite.behavior = BL_TH_NONE;
/* assert(dt >= 0); */
hilite.anytype = dt;
if (hilite.behavior == BL_TH_TEXTMATCH && txt) {