From 9cdcf7b2194960c6ea8b98f2e2a6e71ee4a7959a Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 18 Apr 2020 11:31:16 +0300 Subject: [PATCH] Also explode the other bag of holding --- src/pickup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pickup.c b/src/pickup.c index 9e398c5fc..822339c75 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -2374,6 +2374,8 @@ register struct obj *obj; /* did not actually insert obj yet */ if (was_unpaid) addtobill(obj, FALSE, FALSE, TRUE); + if (obj->otyp == BAG_OF_HOLDING) /* putting bag of holding into another */ + do_boh_explosion(obj, (obj->where == OBJ_FLOOR)); obfree(obj, (struct obj *) 0); /* if carried, shop goods will be flagged 'unpaid' and obfree() will handle bill issues, but if on floor, we need to put them on bill