From df60793e9f71c2b5f2e1cc0db3011435a3638b77 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 27 Jun 2002 19:42:48 +0000 Subject: [PATCH] When moving attributes, don't break the chain. --- lib/object.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/object.c b/lib/object.c index 0a068654..1c9cb23f 100644 --- a/lib/object.c +++ b/lib/object.c @@ -235,6 +235,8 @@ obj_prepend_attr(struct odes *o, uns x, byte *v) if (a->attr == x) { b->same = a; + b->next = a->next; + a->next = NULL; *z = b; b->last_same = a->last_same; return b; -- 2.39.2