]> granicus.if.org Git - nethack/commitdiff
another follow-up bit
authornethack.allison <nethack.allison>
Thu, 16 Dec 2004 10:54:00 +0000 (10:54 +0000)
committernethack.allison <nethack.allison>
Thu, 16 Dec 2004 10:54:00 +0000 (10:54 +0000)
src/pickup.c

index 42fcd597ab3c05a9eb23395db36c2a0f829eb70d..67a5c13f914350c122523b3e434de1698ba3e35d 100644 (file)
@@ -2542,12 +2542,12 @@ struct obj *box;        /* or bag */
        char yourbuf[BUFSZ];
 
        observe_quantum_cat(box);
-       box->cknown = 1;
        if (!Has_contents(box)) /* evidently a live cat came out */
            /* container type of "large box" is inferred */
            pline("%sbox is now empty.", Shk_Your(yourbuf, box));
        else                    /* holds cat corpse or other random stuff */
            empty_it = TRUE;
+       box->cknown = 1;
     } else if (!Has_contents(box)) {
        box->cknown = 1;
        pline("It's empty.");