From 0c42180571429f5a11ada59e3adc8fff5711c073 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 20 May 2007 20:40:34 +0000 Subject: - 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 --- src/map/unit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/unit.c') 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) -- cgit v1.2.3-70-g09d2