summaryrefslogtreecommitdiff
path: root/src/common/mapindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/mapindex.c')
-rw-r--r--src/common/mapindex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/mapindex.c b/src/common/mapindex.c
index 8fbf2da12..0c3faec75 100644
--- a/src/common/mapindex.c
+++ b/src/common/mapindex.c
@@ -3,6 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "showmsg.h"
+#include "../common/malloc.h"
#define MAX_MAPINDEX 2000
@@ -70,7 +71,7 @@ void mapindex_init(void) {
int index, length;
char map_name[1024];
- memset (&indexes, 0, sizeof (indexes));
+ malloc_tsetdword (&indexes, 0, sizeof (indexes));
fp=fopen(mapindex_cfgfile,"r");
if(fp==NULL){
ShowFatalError("Unable to read mapindex config file %s!\n", mapindex_cfgfile);