container-to-container #tip typo

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.
This commit is contained in:
PatR
2022-09-13 04:28:49 -07:00
parent 99e45e6daa
commit d0ee89ab68

View 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);