]> granicus.if.org Git - nethack/commitdiff
onbill() fix
authorPatR <rankin@nethack.org>
Wed, 23 Nov 2022 08:21:04 +0000 (00:21 -0800)
committerPatR <rankin@nethack.org>
Wed, 23 Nov 2022 08:21:04 +0000 (00:21 -0800)
Fix a typo/thinko pointed out by entrez.

src/shk.c

index 2d64a64f72cf4e28c23f6f1e0a46aca2b6e9028c..49663c586da91b9f985c67a6d38d8f3a4467d67f 100644 (file)
--- a/src/shk.c
+++ b/src/shk.c
@@ -888,7 +888,7 @@ onbill(struct obj *obj, struct monst *shkp, boolean silent)
     }
     if (obj->unpaid && !silent)
         impossible("onbill: unpaid obj %s?",
-                   shkp ? "without shopkeeper" : "not on shk's bill");
+                   !shkp ? "without shopkeeper" : "not on shk's bill");
     return (struct bill_x *) 0;
 }