From: nhmall Date: Fri, 10 Feb 2023 13:56:06 +0000 (-0500) Subject: prevent a static analyzer warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cd1a09d41a19f118f0a497a159b72e95fbdc43e;p=nethack prevent a static analyzer warning --- diff --git a/src/mkobj.c b/src/mkobj.c index 62de763dd..21513f71b 100644 --- a/src/mkobj.c +++ b/src/mkobj.c @@ -795,8 +795,9 @@ costly_alteration(struct obj *obj, int alter_type) if (learn_bknown) obj->bknown = 1; /* ok to bypass set_bknown() here */ if (costly_spot(u.ux, u.uy) && objroom == *u.ushops) { - if (shkp) + if (shkp) { SetVoice(shkp, 0, 80, 0); + } verbalize("You %s %s, you pay for %s!", alteration_verbs[alter_type], those, them); bill_dummy_object(obj);