From 27abf1bcb19ef14ec08dc7916cd383e3f045c88b Mon Sep 17 00:00:00 2001 From: gepard1984 Date: Tue, 14 Feb 2012 15:29:00 +0000 Subject: Removed deprecated memory manager macros (follow-up to r14916). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15581 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index bfdc486cd..9a0eaa71f 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -458,7 +458,7 @@ int npc_timerevent_import(char* lname, void* data, va_list ap) int j, i = nd->u.scr.timeramount; if( te == NULL ) - te = (struct npc_timerevent_list*)aMallocA( sizeof(struct npc_timerevent_list) ); + te = (struct npc_timerevent_list*)aMalloc( sizeof(struct npc_timerevent_list) ); else te = (struct npc_timerevent_list*)aRealloc( te, sizeof(struct npc_timerevent_list) * (i+1) ); @@ -2180,7 +2180,7 @@ int npc_convertlabel_db(DBKey key, void* data, va_list ap) if( *label_list == NULL ) { - *label_list = (struct npc_label_list *) aCallocA (1, sizeof(struct npc_label_list)); + *label_list = (struct npc_label_list *) aCalloc (1, sizeof(struct npc_label_list)); *label_list_num = 0; } else *label_list = (struct npc_label_list *) aRealloc (*label_list, sizeof(struct npc_label_list)*(*label_list_num+1)); @@ -2391,7 +2391,7 @@ static const char* npc_parse_script(char* w1, char* w2, char* w3, char* w4, cons struct npc_timerevent_list *te = nd->u.scr.timer_event; int j, k = nd->u.scr.timeramount; if (te == NULL) - te = (struct npc_timerevent_list *)aMallocA(sizeof(struct npc_timerevent_list)); + te = (struct npc_timerevent_list *)aMalloc(sizeof(struct npc_timerevent_list)); else te = (struct npc_timerevent_list *)aRealloc( te, sizeof(struct npc_timerevent_list) * (k+1) ); for (j = 0; j < k; j++){ @@ -2579,7 +2579,7 @@ const char* npc_parse_duplicate(char* w1, char* w2, char* w3, char* w4, const ch struct npc_timerevent_list *te = nd->u.scr.timer_event; int j, k = nd->u.scr.timeramount; if (te == NULL) - te = (struct npc_timerevent_list *)aMallocA(sizeof(struct npc_timerevent_list)); + te = (struct npc_timerevent_list *)aMalloc(sizeof(struct npc_timerevent_list)); else te = (struct npc_timerevent_list *)aRealloc( te, sizeof(struct npc_timerevent_list) * (k+1) ); for (j = 0; j < k; j++){ -- cgit v1.2.3-70-g09d2