Re: [DG_SCRIPT] Crash in 'script_trigger_check

From: Welcor (welcor@dune.net)
Date: 12/10/01


----- Original Message -----
From: "Chi Hue" <Mystikarc@SOFTHOME.NET>
>

> In function 'void script_trigger_check'
> (when called seemingly by zone resets).
> It crashes on this segment/line
>
> --Snip--
>   for (ch = character_list; ch; ch = ch->next) {
>     if (SCRIPT(ch)) {
>       sc = SCRIPT(ch);
>
>       if (IS_SET(SCRIPT_TYPES(sc), WTRIG_RANDOM) &&
>    (!is_empty(world[IN_ROOM(ch)].zone) ||
> // Is Problem line below
>    IS_SET(SCRIPT_TYPES(sc), WTRIG_GLOBAL)))
>  random_mtrigger(ch);
> --End_Snip--
>
> If others whave had a like problem, or knowledge of such, im open to it.
> Any help appreciated

Now that's a strange crash. Are you sure it's crashing on that line?
I mean, you're doing almost the exact same check 3 lines up.

My suggestion:
make clean;make all;cd ..;gdb bin/circle
run

(or, in coder terms - remake the binary from scratch, then run through
gdb...)

Welcor

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



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