summaryrefslogtreecommitdiff
path: root/src/map/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/path.c')
-rw-r--r--src/map/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/path.c b/src/map/path.c
index 550defaa8..838d00a4a 100644
--- a/src/map/path.c
+++ b/src/map/path.c
@@ -377,7 +377,7 @@ int path_search_real(struct walkpath_data *wpd,int m,int x0,int y0,int x1,int y1
if(flag&1)
return -1;
- malloc_set(tp,0,sizeof(tp));
+ memset(tp,0,sizeof(tp));
i=calc_index(x0,y0);
tp[i].x=x0;