Jasc Posted September 16, 2017 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 270 Reputation: 20 Joined: 12/10/11 Last Seen: June 28, 2022 Share Posted September 16, 2017 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. Quote Link to comment Share on other sites More sharing options...
Question
Jasc
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.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.