diff options
author | Haru <haru@dotalux.com> | 2020-05-27 12:52:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 12:52:51 +0200 |
commit | 7b79d5d08fc43cfab1d909e107e958daf739d521 (patch) | |
tree | 6d1a9421e6ec31867eedaafc91460c7397049a2a /src | |
parent | 7b809d48e92a019eb40dad770bc5392169db481b (diff) | |
parent | fcf2e08d41b2708ce959d1afa6be0c110dfca3ff (diff) | |
download | hercules-7b79d5d08fc43cfab1d909e107e958daf739d521.tar.gz hercules-7b79d5d08fc43cfab1d909e107e958daf739d521.tar.bz2 hercules-7b79d5d08fc43cfab1d909e107e958daf739d521.tar.xz hercules-7b79d5d08fc43cfab1d909e107e958daf739d521.zip |
Merge pull request #2714 from Kenpachi2k13/secure_gender_change
Secure gender changing
Diffstat (limited to 'src')
-rw-r--r-- | src/map/chrif.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index b131907e0..ac5fb4dd0 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -863,6 +863,8 @@ static bool chrif_changesex(struct map_session_data *sd, bool change_account) nullpo_retr(false, sd); chrif_check(false); + chrif->save(sd, 0); + WFIFOHEAD(chrif->fd,44); WFIFOW(chrif->fd,0) = 0x2b0e; WFIFOL(chrif->fd,2) = sd->status.account_id; |