diff options
author | Gepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-07 10:44:16 +0000 |
---|---|---|
committer | Gepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-07 10:44:16 +0000 |
commit | fb19f9af5f101c3f5953f1bf2e32f1b1ca895f1a (patch) | |
tree | 97d7e8b64c6f15814484936737caf9398b0b6f63 /src/map | |
parent | 4bb10e3bb76bc657f2add443f0eb4f02a9f906ad (diff) | |
download | hercules-fb19f9af5f101c3f5953f1bf2e32f1b1ca895f1a.tar.gz hercules-fb19f9af5f101c3f5953f1bf2e32f1b1ca895f1a.tar.bz2 hercules-fb19f9af5f101c3f5953f1bf2e32f1b1ca895f1a.tar.xz hercules-fb19f9af5f101c3f5953f1bf2e32f1b1ca895f1a.zip |
Applied clif_equiplist fix by Ai4rei to prevent client crash when equipment is broken/repaired and PACKETVER >= 20100629. Follow-up to r14368. (bugreport:4459)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/renewal@14449 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index a13811913..a6865d833 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -2147,6 +2147,12 @@ void clif_equiplist(struct map_session_data *sd) WBUFL(buf,n*cmd+24)=sd->status.inventory[i].expire_time; WBUFW(buf,n*cmd+28)=0; //Unknown #endif +#if PACKETVER >= 20100629 + if (sd->inventory_data[i]->equip&EQP_HELM) + WBUFW(buf,n*cmd+30)= sd->inventory_data[i]->look; + else + WBUFW(buf,n*cmd+30)=0; +#endif n++; } if (n) { |