diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-22 19:43:19 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-22 19:43:19 +0000 |
commit | bca841a45700ba639280e991b84a3c02e6ab810a (patch) | |
tree | 691419fca4523f7ea1649f2ad71c4a87b7269109 /src/map/clif.c | |
parent | 808b216c7dd6fedf644a0992dbb86255aed1068d (diff) | |
download | hercules-bca841a45700ba639280e991b84a3c02e6ab810a.tar.gz hercules-bca841a45700ba639280e991b84a3c02e6ab810a.tar.bz2 hercules-bca841a45700ba639280e991b84a3c02e6ab810a.tar.xz hercules-bca841a45700ba639280e991b84a3c02e6ab810a.zip |
* Fixed disguising as player clone causing the client to crash while looking for non-existing NPC sprites (bugreport:4428, since r14387, related r14383).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/renewal@14488 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 087a41187..e55a27108 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1017,10 +1017,10 @@ static int clif_set_unit_walking(struct block_list* bl, struct unit_data* ud, un static void clif_setdisguise(struct block_list *bl, unsigned char *buf,int len) { #if PACKETVER >= 20091103 - WBUFB(buf,4)= 0x5; //NPC_MOB_TYPE + WBUFB(buf,4)= pcdb_checkid(status_get_viewdata(bl)->class_) ? 0x0 : 0x5; //PC_TYPE : NPC_MOB_TYPE WBUFL(buf,5)=-bl->id; #elif PACKETVER >= 20071106 - WBUFB(buf,2)= 0x5; //NPC_MOB_TYPE + WBUFB(buf,2)= pcdb_checkid(status_get_viewdata(bl)->class_) ? 0x0 : 0x5; //PC_TYPE : NPC_MOB_TYPE WBUFL(buf,3)=-bl->id; #else WBUFL(buf,2)=-bl->id; |