Fixed a warning

Fixes #8325

Thanks to @Beginerxx
This commit is contained in:
Lemongrass3110 2024-05-13 07:44:36 +02:00
parent f85ca81066
commit 580511c0bb

View File

@ -2594,7 +2594,7 @@ void clif_scriptmenu( map_session_data& sd, uint32 npcid, const char* mes ){
size_t mes_length = strlen(mes);
packet->packetType = HEADER_ZC_MENU_LIST;
packet->npcId = npcid;
packet->packetLength = sizeof(PACKET_ZC_MENU_LIST) + mes_length;
packet->packetLength = static_cast<decltype(packet->packetLength)>( sizeof(PACKET_ZC_MENU_LIST) + mes_length );
memcpy(packet->menu, mes, mes_length);
clif_send( packet, packet->packetLength, &sd.bl, SELF );