From: Ari Johnson Date: Thu, 5 Apr 2007 14:52:23 +0000 (+0000) Subject: Fixed bug with uninitialized lastmod entries X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=5825791b8987d3caf14953e2970557b652d18ccf;p=cobramush.git Fixed bug with uninitialized lastmod entries --- diff --git a/src/db.c b/src/db.c index ed277dd..a3d44ab 100644 --- a/src/db.c +++ b/src/db.c @@ -208,6 +208,7 @@ db_grow(dbref newtop) o->division.powergroups = NULL; o->warnings = 0; o->modification_time = o->creation_time = mudtime; + o->lastmod = NULL; o->attrcount = 0; initialized++; } diff --git a/src/look.c b/src/look.c index 54413e3..3db1408 100644 --- a/src/look.c +++ b/src/look.c @@ -836,7 +836,8 @@ do_examine(dbref player, const char *name, enum exam_type flag, int all) if (!IsPlayer(thing)) { notify_format(player, T("Last Modification: %s"), show_time(ModTime(thing), 0)); - if((Owner(thing) == Owner(player) )|| Director(player)) + if(((Owner(thing) == Owner(player)) || Director(player)) + && LastMod(thing)) notify_format(player, T("Modified: %s"), LastMod(thing)); } }