diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-05-07 07:03:23 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-05-07 07:03:23 +0200 |
commit | fcf2e08d41b2708ce959d1afa6be0c110dfca3ff (patch) | |
tree | 78e24141feaafbf5c3f7652552129ac42153adb5 /src/map | |
parent | 944d8489f1bcca93e6b2ff06a159084f064dce12 (diff) | |
download | hercules-fcf2e08d41b2708ce959d1afa6be0c110dfca3ff.tar.gz hercules-fcf2e08d41b2708ce959d1afa6be0c110dfca3ff.tar.bz2 hercules-fcf2e08d41b2708ce959d1afa6be0c110dfca3ff.tar.xz hercules-fcf2e08d41b2708ce959d1afa6be0c110dfca3ff.zip |
Save character data before changing account/character gender
Diffstat (limited to 'src/map')
-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; |