From 25558e1e01aaa390a1c2df3a0da8e9bcfe17c991 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sun, 12 Jan 2025 13:58:13 -0500 Subject: [PATCH] follow-up Check the correct bits before returning. --- src/invent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invent.c b/src/invent.c index c3e46faad..ed0652dc9 100644 --- a/src/invent.c +++ b/src/invent.c @@ -4943,7 +4943,7 @@ mergable( if (obj->cursed != otmp->cursed || obj->blessed != otmp->blessed) return FALSE; - if ((obj->how_lost & LOSTOVERRIDEMASK) != 0) + if ((obj->how_lost & ~LOSTOVERRIDEMASK) != 0) return FALSE; #if 0 /* don't require 'bypass' to match; that results in items dropped * via 'D' not stacking with compatible items already on the floor;