Greetings list,

I'm doin a bit of a remort task here, limiting class remorts to each
class (ie, clerics can only choose priest or high priest), etc.. 
The problem I'm finding is that the code is always showing the first 2
classes in comm somehow, instead of the correct two classes.. Here's the
code used

if (ch->pcdata->incarnations > 1)
{
      strcpy( buf, "Select a class [ " );
        for ( iClass = 0; iClass < MAX_RCLASS; iClass++ )
        {
          if (class_table [ch->class].rclass [iClass])
          {
            if ( iClass > 0 )
                strcat( buf, " " );
            strcat( buf, class_table[iClass].name );
          }
}
        write_to_buffer( d, buf, 0 );
d->connected = CON_GET_RCLASS;
break;
}
else ...

Like I said, I'm clueless here.. I wouldn't know where to begin, or why
it's not showing up right. Any thoughts/ideas about what I'm doing
wrong?





Reply via email to