if(victim->pIndexData && IS_IMMORTAL(ch) && IS_SET(ch->act, PLR_HOLYLIGHT)){
sprintf(message, " <%d>", victim->pIndexData->vnum);
strcat(buf, message);
}
if (victim->position == victim->start_pos
&& victim->long_descr[0] != '\0')
{
if(victim->pIndexData && IS_IMMORTAL(ch) && IS_SET(ch->act, PLR_HOLYLIGHT))
{
sprintf(buf2, "{W<{C%d{W>{x %s", victim->pIndexData->vnum, victim->long_descr);
strcat(buf, buf2);
stc(buf, ch);
return;
}
else
{
strcat (buf, victim->long_descr);
send_to_char (buf, ch);
return;
}
}
if((pMobIndex = get_mob_index (victim)) != NULL);
{
if (IS_IMMORTAL(ch) && IS_SET(ch->act, PLR_HOLYLIGHT) && IS_NPC (victim))
{
sprintf (message, " <%d>", pMobIndex->vnum);
strcat (buf, message);
}
}
act_info.c: In function 'show_char_to_char_0':
act_info.c:467: warning: passing argument 1 of 'get_mob_index' makes integer from pointer without a cast.
Not sure what I did wrong. I'm assuming something simple.