diff options
Diffstat (limited to 'src/map/mercenary.c')
-rw-r--r-- | src/map/mercenary.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/mercenary.c b/src/map/mercenary.c index 99ca1017e..8486c0335 100644 --- a/src/map/mercenary.c +++ b/src/map/mercenary.c @@ -752,7 +752,7 @@ int read_homunculusdb(void) char *filename[]={"homunculus_db.txt","homunculus_db2.txt"}; char *str[36]; - malloc_set(homunculus_db,0,sizeof(homunculus_db)); + memset(homunculus_db,0,sizeof(homunculus_db)); for(i = 0; i<2; i++) { sprintf(line, "%s/%s", db_path, filename[i]); @@ -839,7 +839,7 @@ int read_homunculus_skilldb(void) int j = 0; char *split[15]; - malloc_tsetdword(hskill_tree,0,sizeof(hskill_tree)); + memset(hskill_tree,0,sizeof(hskill_tree)); sprintf(line, "%s/homun_skill_tree.txt", db_path); fp=fopen(line,"r"); if(fp==NULL){ @@ -906,7 +906,7 @@ void read_homunculus_expdb(void) int i, j=0; char *filename[]={"exp_homun.txt","exp_homun2.txt"}; - malloc_tsetdword(hexptbl,0,sizeof(hexptbl)); + memset(hexptbl,0,sizeof(hexptbl)); for(i=0; i<2; i++){ sprintf(line, "%s/%s", db_path, filename[i]); fp=fopen(line,"r"); |