]> granicus.if.org Git - nethack/commitdiff
prevent a static analyzer warning
authornhmall <nhmall@nethack.org>
Fri, 10 Feb 2023 13:56:06 +0000 (08:56 -0500)
committernhmall <nhmall@nethack.org>
Fri, 10 Feb 2023 13:56:06 +0000 (08:56 -0500)
src/mkobj.c

index 62de763ddd7a9d6f2a66951f151dbb993e8d3cf4..21513f71b0df41facbbdeeab32ad1059c8e8e196 100644 (file)
@@ -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);