Fix deleting worn object

When going down stairs while punished, if you had quivered a mirror
and the mirror was dropped because you fell down the stairs, it would
not have been unequiped.
This commit is contained in:
Pasi Kallinen
2023-01-16 09:40:05 +02:00
parent b82a19ec02
commit 3ee54d1c4e

View File

@@ -976,6 +976,7 @@ litter(void)
You("drop %s and %s %s down the stairs with you.",
yname(otmp), (otmp->quan == 1L) ? "it" : "they",
otense(otmp, "fall"));
setnotworn(otmp);
freeinv(otmp);
hitfloor(otmp, FALSE);
}