when objects are nuked, creation time is set to 0 to avoid objid interference
authorAri Johnson <ari@cobramush.org>
Tue, 20 Feb 2007 19:15:39 +0000 (19:15 +0000)
committerAri Johnson <ari@cobramush.org>
Tue, 20 Feb 2007 19:15:39 +0000 (19:15 +0000)
src/destroy.c
src/fundb.c

index e5a5e8f20b1d9a403c5317a5dd0a63a1886225ef..aca63aeeec4800c3d7426c278ad1e55022a0756b 100644 (file)
@@ -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);
index 09f290c966fd7431ecf31103499dbcd9bdca4fe0..56b86383e026fec1027dcf8effa76dd07a1a6456 100644 (file)
@@ -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);