diff options
Diffstat (limited to 'src/map/path.c')
-rw-r--r-- | src/map/path.c | 3 |
1 files changed, 2 insertions, 1 deletions
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;
|