summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-18 14:15:49 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-18 14:15:49 +0000
commit67213795d8e2c020d0e7d743e98238b65b35630e (patch)
tree3814dae50d00710f0fa93c1a50d0b7a375bfe8cd /src/map/unit.c
parenta2b971ef0af9491bdbd93e07e600a69df97a46a1 (diff)
downloadhercules-67213795d8e2c020d0e7d743e98238b65b35630e.tar.gz
hercules-67213795d8e2c020d0e7d743e98238b65b35630e.tar.bz2
hercules-67213795d8e2c020d0e7d743e98238b65b35630e.tar.xz
hercules-67213795d8e2c020d0e7d743e98238b65b35630e.zip
- 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
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c6
1 files changed, 3 insertions, 3 deletions
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;