From 7b3a8bc7cbcc9ad9dadd691d1afed88f0f70954f Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Thu, 5 Apr 2007 14:52:23 +0000 Subject: [PATCH] Fixed bug with uninitialized lastmod entries (cherry picked from commit 5825791b8987d3caf14953e2970557b652d18ccf) --- src/db.c | 1 + src/look.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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)); } } -- 2.30.2