diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-04-08 19:56:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-04-08 19:56:08 +0300 |
commit | 8f76b5e745322b637a02e9a45c996acebe95bc3e (patch) | |
tree | 3583c405c24c90a395958cdb0181c4d6c2cd4888 /src/emap/pc.c | |
parent | 5ad15527869c9ca9d374d9463a74093b536e96bc (diff) | |
download | evol-hercules-8f76b5e745322b637a02e9a45c996acebe95bc3e.tar.gz evol-hercules-8f76b5e745322b637a02e9a45c996acebe95bc3e.tar.bz2 evol-hercules-8f76b5e745322b637a02e9a45c996acebe95bc3e.tar.xz evol-hercules-8f76b5e745322b637a02e9a45c996acebe95bc3e.zip |
Update from hercules
Diffstat (limited to 'src/emap/pc.c')
-rw-r--r-- | src/emap/pc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/emap/pc.c b/src/emap/pc.c index 9149e1e..ec45cdc 100644 --- a/src/emap/pc.c +++ b/src/emap/pc.c @@ -940,6 +940,13 @@ int epc_jobchange(struct map_session_data *sd, if (sd->disguise != -1) pc->disguise(sd, -1); + // Fix atcommand @jobchange when the player changing from 3rd job having alternate body style into non-3rd job, crashing the client +// if (pc->has_second_costume(sd) == false) { +// sd->status.body = 0; +// sd->vd.body_style = 0; +// clif->changelook(&sd->bl, LOOK_BODY2, sd->vd.body_style); +// } + status->set_viewdata(&sd->bl, class); send_changelook2(sd, &sd->bl, sd->bl.id, LOOK_BASE, sd->vd.class, 0, NULL, 0, AREA); // clif->changelook(&sd->bl, LOOK_BASE, sd->vd.class); // move sprite update to prevent client crashes with incompatible equipment [Valaris] |