From 88df93c8548c06bede256f1bd848fc4485420b5f Mon Sep 17 00:00:00 2001 From: Rick L Bird Date: Fri, 6 May 2011 01:51:32 -0400 Subject: [PATCH] Crash in attribute tree code fixed when updating last modified information. --- src/attrib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/attrib.c b/src/attrib.c index 9123efe..9e01200 100644 --- a/src/attrib.c +++ b/src/attrib.c @@ -729,10 +729,10 @@ atr_add(dbref thing, const char *restrict atr, const char *restrict s, /* update modification time here, because from now on, * we modify even if we fail */ - if (!IsPlayer(thing) && !AF_Nodump(ptr)) { + if (!IsPlayer(thing) && !AF_Nodump(root)) { char lmbuf[1024]; ModTime(thing) = mudtime; - snprintf(lmbuf, 1023, "%s[#%d]", ptr->name, player); + snprintf(lmbuf, 1023, "%s[#%d]", root->name, player); lmbuf[strlen(lmbuf) + 1] = '\0'; set_lmod(thing, lmbuf); } -- 2.30.2