prevent a static analyzer warning

This commit is contained in:
nhmall
2023-02-10 08:56:06 -05:00
parent 24461058e6
commit 3cd1a09d41

View 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);