Problem with switch command...

From: Vladimir Nano (nano.vladimir@slsp.sk)
Date: 04/28/02


Hallo.
I have 'autodate' command.
When the player 'switch' into a mob, in the syslog is
a message:

SYSERR: Mob using '((i->character)->player_specials->saved.pref)' at
weather.c:253.

Here is function from weather.c: (bpl18)

/* actual date in messg */
void send_to_autodate(char *messg)
{
  struct descriptor_data *i;

  if (!messg || !*messg)
    return;

  for (i = descriptor_list; i; i = i->next)
    if (!i->connected && i->character && AWAKE(i->character)
        && PRF_FLAGGED(i->character, PRF_AUTODATE))     /* LINE 253 */
      SEND_TO_Q(messg, i);
}

I modified it:

if (!i->connected && i->character && !i->original
                                     ~~~~~~~~~~~~~
    && AWAKE(i->character)
    && PRF_FLAGGED(i->character, PRF_AUTODATE))


Now it works, but is it a good solution?

Thank You
VladoN








This email has been swept by
MIMEsweeper for the presence of computer viruses.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT