Re: Windows 95 Crash vs Linux Work??

From: Stephen Marz (smarz@MAIL.TDS.NET)
Date: 08/07/97


George wrote:

> On Thu, 7 Aug 1997, Stephen Marz wrote:
>
> >void mag_assign_spells(void)
> >{
> >  int i;
> >/*struct char_data *ch;
> >struct descriptor_data *d;
> >extern struct descriptor_data *descriptor_list;   <-- BUG
> >d = descriptor_list;
> >ch = d->character;*/
> >  /* Do not change the loop below */
>
> You're crashing because when d is NULL and you try to reference
> anything
> below it, you crash. (like ch->player.name must test for ch)  I don't
> know
> why you have that, here's my function:
>

The reason those things were in there is because I patched it with the
autoeq patch file, I did look at an older source and it looked exactly
like yours, so I thought to myself why it was there, it is taken out and
it seems to work fine.


     +------------------------------------------------------------+
     | 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/08/00 PST