Fix uninitialized var in dip

This commit is contained in:
Pasi Kallinen
2022-04-14 18:59:03 +03:00
parent 9c2a5cbcb8
commit 43856fe023

View File

@@ -2212,11 +2212,12 @@ dodip(void)
if (inaccessible_equipment(obj, "dip", FALSE))
return ECMD_OK;
shortestname = (is_plural(obj) || pair_of(obj)) ? "them" : "it";
drink_ok_extra = 0;
/* preceding #dip with 'm' skips the possibility of dipping into
fountains and pools plus the prompting which those entail */
if (!iflags.menu_requested) {
shortestname = (is_plural(obj) || pair_of(obj)) ? "them" : "it";
/*
* Bypass safe_qbuf() since it doesn't handle varying suffix without
* an awful lot of support work. Format the object once, even though