Outlook Posted May 11 Group: Members Topic Count: 25 Topics Per Day: 0.04 Content Count: 64 Reputation: 5 Joined: 07/10/22 Last Seen: Tuesday at 08:21 AM Share Posted May 11 (edited) Hi i have a problem After update from https://github.com/rathena/rathena/commit/d445497870e7f93abab3800b18acc438f7a4af75 Error + mes_length clif.cpp(2641,53): warning C4267: '=': conversion from 'size_t' to 'int16', possible loss of data Thank you. void clif_scriptmenu( map_session_data& sd, uint32 npcid, const char* mes ){ struct block_list *bl = nullptr; if (!sd.state.using_fake_npc && (npcid == fake_nd->bl.id || ((bl = map_id2bl(npcid)) && (bl->m!=sd.bl.m || bl->x<sd.bl.x-AREA_SIZE-1 || bl->x>sd.bl.x+AREA_SIZE+1 || bl->y<sd.bl.y-AREA_SIZE-1 || bl->y>sd.bl.y+AREA_SIZE+1)))) clif_sendfakenpc( sd, npcid ); PACKET_ZC_MENU_LIST *packet = reinterpret_cast<PACKET_ZC_MENU_LIST*>(packet_buffer); size_t mes_length = strlen(mes); packet->packetType = HEADER_ZC_MENU_LIST; packet->npcId = npcid; packet->packetLength = sizeof(PACKET_ZC_MENU_LIST) + mes_length; memcpy(packet->menu, mes, mes_length); clif_send( packet, packet->packetLength, &sd.bl, SELF ); } Edited May 11 by Outlook Quote Link to comment Share on other sites More sharing options...
0 Outlook Posted May 13 Group: Members Topic Count: 25 Topics Per Day: 0.04 Content Count: 64 Reputation: 5 Joined: 07/10/22 Last Seen: Tuesday at 08:21 AM Author Share Posted May 13 Solved. Quote Link to comment Share on other sites More sharing options...
Question
Outlook
Hi i have a problem After update from
https://github.com/rathena/rathena/commit/d445497870e7f93abab3800b18acc438f7a4af75
Error + mes_length
clif.cpp(2641,53): warning C4267: '=': conversion from 'size_t' to 'int16', possible loss of data
Thank you.
Link to comment
Share on other sites
1 answer 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.