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).
This commit is contained in:
Tung Nguyen
2016-03-11 18:35:56 +11:00
parent 7cf75b707a
commit f8b0e766d8
+1 -1
View File
@@ -859,7 +859,7 @@ boolean silent;
} else } else
bp++; bp++;
} }
if (obj->unpaid & !silent) if (obj->unpaid && !silent)
pline("onbill: unpaid obj not on bill?"); pline("onbill: unpaid obj not on bill?");
return (struct bill_x *) 0; return (struct bill_x *) 0;
} }