From 3c8999edce9e1f0d5c0dee3ff8311e781d64c684 Mon Sep 17 00:00:00 2001 From: Lance Date: Sun, 27 Aug 2006 06:38:17 +0000 Subject: * Optional macro MEMSET_TURBO for faster low-level memory initializations. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8499 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/path.c') diff --git a/src/map/path.c b/src/map/path.c index 8db44feb6..d0f79c3c3 100644 --- a/src/map/path.c +++ b/src/map/path.c @@ -9,6 +9,7 @@ #include "battle.h" #include "../common/nullpo.h" #include "../common/showmsg.h" +#include "../common/malloc.h" #ifdef MEMWATCH #include "memwatch.h" @@ -369,7 +370,7 @@ int path_search_real(struct walkpath_data *wpd,int m,int x0,int y0,int x1,int y1 if(flag&1) return -1; - memset(tp,0,sizeof(tp)); + malloc_set(tp,0,sizeof(tp)); i=calc_index(x0,y0); tp[i].x=x0; -- cgit v1.2.3-70-g09d2