Ok been having this problem on the mud for a while now and I can't seem to
kick it. With our druid class they can summon famliures, well when it does
this it uses create_mobile. Now at the bottom of create mobile it adds the
new mob to the char_list. Well when these summons are killed or unsummoned
it bug reports:
[*****] BUG: Extract_char: char not found.

So I looked up what causes that bug, and it's when it can't find the mob in
the char_list. So I doubled checked with gdb that it was getting to the end
of create_mobile to add them to the list. What weird is it does but the
second it leaves create_mobile I print the char_list->name to see whos the
first cause it should be the mob. And it was the head of the list before it
called create mobile.

So then right after it calls create_mobile I added a if (char_list != pet)
and then it adds it to the list. It still doesn't have the pet in the list
cause it's still bug reporting. Whats weird is we have skeletons and other
familure they only call create mobile. And they work fine it's just with the
druids summons that it's doing this. Anyone had a problem simular to this.

 if (pet != char_list)
 {
  pet->next = char_list;
  char_list = pet;
 }

Thats how I'm adding them to the list.


Reply via email to