diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-07 18:58:33 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-07 18:58:33 +0000 |
commit | dff76e1a9840fe00a6c738d89de5d1074eae858a (patch) | |
tree | 33d2843fa4495142449e5a3175db6a1b48123bcd /src/map/map.c | |
parent | 4f713a631bcb5df4ee4afc8667b51c2893ce693b (diff) | |
download | hercules-dff76e1a9840fe00a6c738d89de5d1074eae858a.tar.gz hercules-dff76e1a9840fe00a6c738d89de5d1074eae858a.tar.bz2 hercules-dff76e1a9840fe00a6c738d89de5d1074eae858a.tar.xz hercules-dff76e1a9840fe00a6c738d89de5d1074eae858a.zip |
- Corrected the pet/homunc data not being free'd if the player logs out before being authed.
- Initialized player's speed on pc_setnewpc to prevent homunculus copying a speed of 0.
- Added comment to reloadbattleconf specifying that some settings do not take effect inmediately.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9975 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c index 48ca20dff..6be703545 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1669,6 +1669,8 @@ void map_deliddb(struct block_list *bl) { int map_quit(struct map_session_data *sd) { if(!sd->state.auth) { //Removing a player that hasn't even finished loading + if (sd->pd) unit_free(&sd->pd->bl,-1); + if (sd->hd) unit_free(&sd->hd->bl,-1); idb_remove(pc_db,sd->status.account_id); idb_remove(charid_db,sd->status.char_id); idb_remove(id_db,sd->bl.id); |