Minor buglet

From: George (greerga@MIAVX1.ACS.MUOHIO.EDU)
Date: 07/13/97


In db.c:

struct obj_data *read_object(int nr, int type)
{
[snip]
  if (type == VIRTUAL) {
    if ((i = real_object(nr)) < 0) {
      sprintf(buf, "Object (V) %d does not exist in database.", nr);
*->
      return NULL;
    }

Stock CircleMUD is missing a "log(buf);" at the line indicated (#1449).

-George

diff -up ../stk/db.c ./db.c
--- ../stk/db.c Thu Jun 19 00:58:37 1997
+++ ./db.c      Sun Jul 13 20:15:53 1997
@@ -1446,6 +1446,7 @@ struct obj_data *read_object(int nr, int
   if (type == VIRTUAL) {
     if ((i = real_object(nr)) < 0) {
       sprintf(buf, "Object (V) %d does not exist in database.", nr);
+      log(buf);
       return NULL;
     }
   } else


      +-----------------------------------------------------------+
      | Ensure that you have read the CircleMUD Mailing List FAQ: |
      |   http://cspo.queensu.ca/~fletcher/Circle/list-faq.html   |
      +-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST