diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-20 20:40:34 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-20 20:40:34 +0000 |
commit | 0c42180571429f5a11ada59e3adc8fff5711c073 (patch) | |
tree | 811ce8e6c7f572f07bab57a37679b71ffbfe567b /src/map/unit.c | |
parent | b6ea55b755afff6cd8353896353272563498bfe2 (diff) | |
download | hercules-0c42180571429f5a11ada59e3adc8fff5711c073.tar.gz hercules-0c42180571429f5a11ada59e3adc8fff5711c073.tar.bz2 hercules-0c42180571429f5a11ada59e3adc8fff5711c073.tar.xz hercules-0c42180571429f5a11ada59e3adc8fff5711c073.zip |
- Fixed one missed malloc->aMallocA typo, causing memory deallocation problems
- Some small trunk-stable formatting synchronization
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10595 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index b1612f986..77a305f18 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1546,7 +1546,7 @@ static int unit_counttargeted_sub(struct block_list* bl, va_list ap) /*========================================== * Counts the number of units attacking 'bl' - *------------------------------------------*/ + *------------------------------------------*/ int unit_counttargeted(struct block_list* bl, int target_lv) { nullpo_retr(0, bl); @@ -1784,7 +1784,7 @@ int unit_free(struct block_list *bl, int clrtype) status_change_end(bl,SC_REGENERATION,-1); } if (battle_config.debuff_on_logout&2) - { //Food items are removed on logout. + { if(sd->sc.data[SC_MAXIMIZEPOWER].timer!=-1) status_change_end(bl,SC_MAXIMIZEPOWER,-1); if(sd->sc.data[SC_MAXOVERTHRUST].timer!=-1) |