diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-01 15:18:15 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-01 15:18:15 +0000 |
commit | f15995cea6ac172a676b17fc91fb0940f97ae87f (patch) | |
tree | 4e5485c84d5b25a107221bec906a8b00eaa7077f /src/map/map.c | |
parent | d3adab9f6f417979f9f7a5915930604d0add5c64 (diff) | |
download | hercules-f15995cea6ac172a676b17fc91fb0940f97ae87f.tar.gz hercules-f15995cea6ac172a676b17fc91fb0940f97ae87f.tar.bz2 hercules-f15995cea6ac172a676b17fc91fb0940f97ae87f.tar.xz hercules-f15995cea6ac172a676b17fc91fb0940f97ae87f.zip |
- Added defines status_base_matk_(max/min) for code readability
- Expanded status_calc_misc so it may also calculate the batk of characters as well as their regen data (if they have it)
- Fixed a memory leak when using charsave_method:1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8576 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 cd70167bd..61527cadb 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1703,6 +1703,8 @@ int map_quit(struct map_session_data *sd) { if(charsave_method) { //Let player be free'd on closing the connection. idb_remove(pc_db,sd->status.account_id); + if (!(sd->fd && session[sd->fd]->session_data)) + aFree(sd); //In case player was not attached to session. return 0; } #endif |