]> granicus.if.org Git - nethack/commitdiff
container-to-container #tip typo
authorPatR <rankin@nethack.org>
Tue, 13 Sep 2022 11:28:49 +0000 (04:28 -0700)
committerPatR <rankin@nethack.org>
Tue, 13 Sep 2022 11:28:49 +0000 (04:28 -0700)
When tipping a magic-bag exploder from a sack or box into a bag of
holding, the choice of whether to call useup() or useupf() was
backwards.  But nothing bad happened which is fishy.

src/pickup.c

index e0f1fbe90471b35b026892593bfdbf9ef0f3629d..6acc20e21c6007a151ce17062cb01158c9b2c9ee 100644 (file)
@@ -3520,7 +3520,7 @@ tipcontainer(struct obj *box) /* or bag */
                                  doname(otmp), otense(otmp, "tumble"));
                     do_boh_explosion(targetbox, held);
                     nobj = 0; /* stop tipping; want loop to exit 'normally' */
-                    if (!held)
+                    if (held)
                         useup(targetbox);
                     else
                         useupf(targetbox, targetbox->quan);