if( target->type == BL_PC && ((TBL_PC *)target)->status.pet_id > 0 && ((TBL_PC *)target)->pd && battle_config.pet_damage_support )
pet_target_check(((TBL_PC *)target),src,1);
if( target->type == BL_MOB && sd && sd->status.pet_id > 0 && sd->pd && battle_config.pet_damage_support )
pet_target_check(sd,target,0);
While compiling, I see these errors:
unit.c(1920): warning C4133: 'function': incompatible types - from 'TBL_PC *' to 'pet_data *'
unit.c(1922): warning C4133: 'function': incompatible types - from 'map_session_data *' to 'pet_data *'
While it finishes compiling and the server can start. Upon pet support where it attacks mobs, map server crashes.