diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-11-02 19:30:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-11-04 23:24:24 +0300 |
commit | ff898b1d949aac48c9017e89d5f7ba5e18d65870 (patch) | |
tree | 1dd52678af736ede65b36b165b2032bac10b2954 /src/map/script.c | |
parent | 497a25b19d58ace8e450614f0b6cab433a040428 (diff) | |
download | hercules-ff898b1d949aac48c9017e89d5f7ba5e18d65870.tar.gz hercules-ff898b1d949aac48c9017e89d5f7ba5e18d65870.tar.bz2 hercules-ff898b1d949aac48c9017e89d5f7ba5e18d65870.tar.xz hercules-ff898b1d949aac48c9017e89d5f7ba5e18d65870.zip |
Refresh npc after changing fields in setunitdata.
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index bbaa5f6ed..5773457a7 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -19158,7 +19158,8 @@ BUILDIN(setunitdata) nd->status.dmotion = (unsigned short) val; break; case UDT_SEX: - nd->vd.sex = (char) val; + nd->vd.sex = (char)val; + npc->refresh(nd); break; case UDT_HAIRSTYLE: clif->changelook(bl, LOOK_HAIR, val); |