From 05733d28f4a8279362c52bac83c6c97dee709b94 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 31 Jul 2026 06:25:58 -0400 Subject: [PATCH] food_disappears is missing a tin check #1648 Reported in GitHub issue #1648 by @janne-hmp --- src/eat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/eat.c b/src/eat.c index 242429552..4e3d077e1 100644 --- a/src/eat.c +++ b/src/eat.c @@ -398,6 +398,11 @@ food_disappears(struct obj *obj) if (obj == svc.context.victual.piece) svc.context.victual = zero_victual; /* victual.piece = 0, .o_id = 0 */ + if (obj == svc.context.tin.tin) { + svc.context.tin.tin = (struct obj *) 0; + svc.context.tin.o_id = 0; + } + if (obj->timed) obj_stop_timers(obj); }