From 3cd1a09d41a19f118f0a497a159b72e95fbdc43e Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 10 Feb 2023 08:56:06 -0500 Subject: [PATCH] prevent a static analyzer warning --- src/mkobj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.50.1