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-09 00:26:57 +11:00
parent 7cf75b707a
commit f8b0e766d8

View File

@@ -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;
}