Re: [Ad] Come join us!

From: Carlo Mocci (mocci@TIN.IT)
Date: 03/25/98


At 09.57 25/03/98 +0100, you wrote:
>i don't understand why... but if in the write_to_output, i put an if around
>the parse_color(txt,t), the mud crash with a core dump after some disk
>swapping
>
>i've tried this
>
>if ((PRF_FLAGGED(t->character,PRF_TEST))
>        new_txt = parse_color(txt,t);

Marco,
Try to check if t->character exists before accessing it with the
PRF_FLAGGED macro.

if (t->character)
    if ((PRF_FLAGGED(t->character,PRF_TEST))
             new_txt = parse_color (txt,t);

---------------------------------------------------------------
|        __         __            __  __         __       __  |
|   __  (  )  ___  (  )    __    (  \/  )  __   / _)  __ (  ) |
|  / _) /__\ (  ,)  )(__  /  \    )    (  /  \ ( (_  / _) )(  |
| ( (_ (_)(_) )  \ (____)( () )  (_/\/\_)( () ) \__)( (_ (__) |
|  \__)      (_)\_)       \__/            \__/       \__)     |
|                                                             |
| mailto: mocci@tin.it                                        |
| http://volftp.tin.it/IT/IT/ITALIANI/MOCCI                   |
| http://www.geocities.com/SunsetStrip/Palms/7010             |
---------------------------------------------------------------


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



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