> for (i=ch->in_room->track_num; i <= MAX_TRACK_INROOM; i++)
I'm assuming that you're using MAX_TRACK_INROOM to initialize the size of the array.... in which case this line would be the problem.
> for (i=ch->in_room->track_num; i <= MAX_TRACK_INROOM; i++)
I'm assuming that you're using MAX_TRACK_INROOM to initialize the size of the array.... in which case this line would be the problem.