From b795233e374987f4c427f59922f271810f937eef Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 7 Jan 2007 16:49:03 +0000 Subject: Undid the memset->malloc_set replacement git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9626 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index d580dd09c..f17b05e02 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -2570,7 +2570,7 @@ static int map_cache_open(char *fn) // 読み甲ンに失敗したので新規に作成する map_cache.fp = fopen(fn,"wb"); if(map_cache.fp) { - malloc_set(&map_cache.head,0,sizeof(struct map_cache_head)); + memset(&map_cache.head,0,sizeof(struct map_cache_head)); map_cache.map = (struct map_cache_info *) aCalloc(sizeof(struct map_cache_info),MAX_MAP_CACHE); map_cache.head.nmaps = MAX_MAP_CACHE; map_cache.head.sizeof_header = sizeof(struct map_cache_head); @@ -3135,7 +3135,7 @@ int map_readallmaps (void) // pre-init some data map[i].alias = NULL; map[i].m = i; - malloc_set (map[i].moblist, 0, sizeof(map[i].moblist)); //Initialize moblist [Skotlex] + memset (map[i].moblist, 0, sizeof(map[i].moblist)); //Initialize moblist [Skotlex] map[i].mob_delete_timer = -1; //Initialize timer [Skotlex] if (battle_config.pk_mode) map[i].flag.pvp = 1; // make all maps pvp for pk_mode [Valaris] @@ -3253,7 +3253,7 @@ int parse_console(char *buf) { int m, n; struct map_session_data sd; - malloc_set(&sd, 0, sizeof(struct map_session_data)); + memset(&sd, 0, sizeof(struct map_session_data)); strcpy( sd.status.name , "console"); if ( ( n = sscanf(buf, "%[^:]:%[^:]:%99s %d %d[^\n]", type , command , map , &x , &y )) < 5 ) -- cgit v1.2.3-60-g2f50