> Another silly question (thanks Bobby for solving my last one!!)...
>
> I'm getting a Seg Fault in the following code:
>
> if (!IS_NPC(ch))
> {
> for (i=ch->in_room->track_num; i <= MAX_TRACK_INROOM; i++)
> {
> if (i == ch->in_room->track_num)
> {
> ch->in_room->track[i]->name = ch->name; /* <--- THIS LINE */
You're using GDB which is good. What is the value of ch->name? What is
the value of ch->in_room? Are either Null?
And I'm missing part of your logic here.
You initialize i in the for loop to be ch->in_room->track_num. Then
immediately check to see if i is equal to ch->in_room->track_num. Not
sure what you're trying to accomplish there.
Jef