Fixed zero-length packet warning on party member logoff. Fixes #7324 (#7339)

Co-authored-by: Aleos <aleos89@users.noreply.github.com>
This commit is contained in:
Jittapan Pluemsumran 2022-10-09 18:21:57 +07:00 committed by GitHub
parent 6bb29c0743
commit fa36ae27dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10164,15 +10164,17 @@ void clif_disp_overhead_(struct block_list *bl, const char* mes, enum send_targe
* Minimap fix [Kevin]
* Remove dot from minimap
*--------------------------*/
void clif_party_xy_remove(struct map_session_data *sd)
void clif_party_xy_remove(struct map_session_data* sd)
{
unsigned char buf[16];
nullpo_retv(sd);
WBUFW(buf,0)=0x107;
WBUFL(buf,2)=sd->status.account_id;
WBUFW(buf,6)=-1;
WBUFW(buf,8)=-1;
clif_send(buf,packet_len(0x107),&sd->bl,PARTY_SAMEMAP_WOS);
PACKET_ZC_NOTIFY_POSITION_TO_GROUPM p{};
p.PacketType = HEADER_ZC_NOTIFY_POSITION_TO_GROUPM;
p.AID = sd->status.account_id;
p.xPos = -1;
p.yPos = -1;
clif_send(&p, sizeof(p), &sd->bl, PARTY_SAMEMAP_WOS);
}