From cce585c4494024b2ca24250c53502d796de464bd Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Tue, 20 Feb 2007 19:15:39 +0000 Subject: [PATCH] when objects are nuked, creation time is set to 0 to avoid objid interference --- src/destroy.c | 1 + src/fundb.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/destroy.c b/src/destroy.c index e5a5e8f..aca63ae 100644 --- a/src/destroy.c +++ b/src/destroy.c @@ -762,6 +762,7 @@ free_object(dbref thing) set_name(thing, "Garbage"); Exits(thing) = NOTHING; Home(thing) = NOTHING; + CreTime(thing) = 0; /* Prevents it from matching objids */ set_lmod(thing, NULL); clear_objdata(thing); diff --git a/src/fundb.c b/src/fundb.c index 09f290c..56b8638 100644 --- a/src/fundb.c +++ b/src/fundb.c @@ -1195,7 +1195,7 @@ FUNCTION(fun_ctime) { dbref it = match_thing(executor, args[0]); - if (GoodObject(it)) + if (GoodObject(it) && !IsGarbage(it)) safe_str(show_time(CreTime(it), 0), buff, bp); else safe_str(T(e_notvis), buff, bp); -- 2.30.2