From f8b0e766d85289ef0c66be9e50f93c5258929c2f Mon Sep 17 00:00:00 2001 From: Tung Nguyen Date: Wed, 9 Mar 2016 00:26:57 +1100 Subject: [PATCH] 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). --- src/shk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }