From 67213795d8e2c020d0e7d743e98238b65b35630e Mon Sep 17 00:00:00 2001 From: toms Date: Fri, 18 Aug 2006 14:15:49 +0000 Subject: - Little code cleanup - Cleaned merc_hom_evolution to avoid free'ing/realloc'ing - Fixed "args of aFree is freed pointer" on Homunc deletion git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8341 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index ea1efcca7..4d6fdc29f 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -15,7 +15,7 @@ #include "pc.h" #include "mob.h" #include "pet.h" -#include "mercenary.h" ///[orn] +#include "mercenary.h" #include "skill.h" #include "clif.h" #include "npc.h" @@ -30,8 +30,8 @@ #include "chrif.h" #include "script.h" -static int dirx[8]={0,-1,-1,-1,0,1,1,1}; -static int diry[8]={1,1,0,-1,-1,-1,0,1}; +const int dirx[8]={0,-1,-1,-1,0,1,1,1}; +const int diry[8]={1,1,0,-1,-1,-1,0,1}; struct unit_data* unit_bl2ud(struct block_list *bl) { if( bl == NULL) return NULL; -- cgit v1.2.3-70-g09d2