From: Rick L Bird Date: Fri, 6 May 2011 05:51:32 +0000 (-0400) Subject: Crash in attribute tree code fixed when updating last modified X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=88df93c8548c06bede256f1bd848fc4485420b5f;p=cobramush.git Crash in attribute tree code fixed when updating last modified information. --- 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); }