From: Tung Nguyen Date: Tue, 8 Mar 2016 13:26:57 +0000 (+1100) Subject: Fix & instead of && in onbill() X-Git-Tag: NetHack-3.6.1_RC01~832^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8b0e766d85289ef0c66be9e50f93c5258929c2f;p=nethack Fix & instead of && in onbill() It's obviously supposed to be the latter and not the former. Interesting note: This same bug was found and fixed in NitroHack commit 4973ce4 (static checker day: fixes for scan-build and PVS warnings). --- diff --git a/src/shk.c b/src/shk.c index 6cf62f2c0..addf8aac7 100644 --- a/src/shk.c +++ b/src/shk.c @@ -859,7 +859,7 @@ boolean silent; } else bp++; } - if (obj->unpaid & !silent) + if (obj->unpaid && !silent) pline("onbill: unpaid obj not on bill?"); return (struct bill_x *) 0; }