Fixed a typo in r12008 causing server crashes when sending the fake npc packet.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12012 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
24ee182b90
commit
51e05f0fcf
@ -1565,10 +1565,11 @@ void clif_sendfakenpc(struct map_session_data *sd, int npcid)
|
|||||||
{
|
{
|
||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
int fd = sd->fd;
|
int fd = sd->fd;
|
||||||
WFIFOHEAD(fd, packet_len(0x78));
|
|
||||||
sd->state.using_fake_npc = 1;
|
sd->state.using_fake_npc = 1;
|
||||||
|
|
||||||
|
WFIFOHEAD(fd, packet_len(0x78));
|
||||||
buf = WFIFOP(fd,0);
|
buf = WFIFOP(fd,0);
|
||||||
memset(WBUFP(fd,0), 0, packet_len(0x78));
|
memset(WBUFP(buf,0), 0, packet_len(0x78));
|
||||||
WBUFW(buf,0)=0x78;
|
WBUFW(buf,0)=0x78;
|
||||||
#if PACKETVER >=9
|
#if PACKETVER >=9
|
||||||
WBUFB(buf,2) = 0; //Unknown bit
|
WBUFB(buf,2) = 0; //Unknown bit
|
||||||
@ -1580,6 +1581,7 @@ void clif_sendfakenpc(struct map_session_data *sd, int npcid)
|
|||||||
WBUFB(buf,49)=5;
|
WBUFB(buf,49)=5;
|
||||||
WBUFB(buf,50)=5;
|
WBUFB(buf,50)=5;
|
||||||
WFIFOSET(fd, packet_len(0x78));
|
WFIFOSET(fd, packet_len(0x78));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user