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:
void mag_assign_spells(void)
{
int i;
/* Do not change the loop below */
for (i = 1; i <= TOP_SPELL_DEFINE; i++)
unused_spell(i);
/* Do not change the loop above */
spello(SPELL_ARMOR, 30, 15, 3, POS_FIGHTING,
TAR_CHAR_ROOM, FALSE, MAG_AFFECTS);
etc
--
greerga@muohio.edu me@null.net | Genius may have its limitations, but stupidity
http://www.muohio.edu/~greerga | is not thus handicapped. -- Elbert Hubbard
+------------------------------------------------------------+
| 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