Well, without your group_lookup function, I can't say for any certainty,
but I am willing to bet that you forgot the hook to load your group table
information, or at least, the MAX_GROUP isn't being initialized properly...
Since it is a global it /should/ default to 0. The gn isn't even a number I
could say 'it is just rolling over' since it isn't MAX_INT or such.

Why don't you give us a complete rundown? print things such as MAX_GROUP,
ch->pcdata->group_known, group_table, race_table, and a thorough
walkthrough?

Ammaross Danan

>
>       It looks like group_lookup() is returning a bad gn.
>
> Breakpoint 1, gn_add (ch=0x404065ec, gn=0) at skills.c:968
> 968         ch->pcdata->group_known[gn] = TRUE;
> (gdb) c
> Continuing.
>
> Breakpoint 1, gn_add (ch=0x404065ec, gn=135421864) at skills.c:968 968
>        ch->pcdata->group_known[gn] = TRUE;
> (gdb)
>
>       Any ideas why this might be happening?
>
>       Ryan
>
> --
> [EMAIL PROTECTED]
> HELO... my name is root... you have SIGKILLed my father... prepare to
> vi!
>
>     Hi! Can you to speak to me the learn for to speak the Unix?
>
> On Thu, 24 Oct 2002 [EMAIL PROTECTED] wrote:
>
>>
>> > #1  0x080be696 in gn_add (ch=0x4040647c, gn=135448576) at
>> > skills.c:970 #2  0x080be813 in group_add (ch=0x4040647c,
>> >    name=0x21 <Address 0x21 out of bounds>, deduct=0 '\0') at
>> > skills.c:1024
>>
>> It would help if you actually passed good information to group_add().
>> Use GDB for more than a backtrace and see if your race_table actually
>> has something in it. Particularly race_table[ch->race].skills[]
>>
>> Ammaross Danan
>>
>>
>>
>>
>
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom




Reply via email to