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/party.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/map/party.c') diff --git a/src/map/party.c b/src/map/party.c index 87bd3ad62..558615e9c 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -190,7 +190,7 @@ static void* create_party(DBKey key, va_list args) { static void party_check_state(struct party_data *p) { int i; - malloc_set(&p->state, 0, sizeof(p->state)); + memset(&p->state, 0, sizeof(p->state)); for (i = 0; i < MAX_PARTY; i ++) { if (!p->party.member[i].online) continue; //Those not online shouldn't aport to skill usage and all that. @@ -226,8 +226,8 @@ int party_recv_info(struct party *sp) if (!p->party.party_id) //party just received. party_check_member(sp); memcpy(&p->party,sp,sizeof(struct party)); - malloc_set(&p->state, 0, sizeof(p->state)); - malloc_set(&p->data, 0, sizeof(p->data)); + memset(&p->state, 0, sizeof(p->state)); + memset(&p->data, 0, sizeof(p->data)); for(i=0;iparty.member[i].account_id) continue; @@ -415,8 +415,8 @@ int party_member_leaved(int party_id,int account_id,int char_id) if(p->party.member[i].account_id==account_id && p->party.member[i].char_id==char_id){ clif_party_leaved(p,sd,account_id,p->party.member[i].name,0x00); - malloc_set(&p->party.member[i], 0, sizeof(p->party.member[0])); - malloc_set(&p->data[i], 0, sizeof(p->data[0])); + memset(&p->party.member[i], 0, sizeof(p->party.member[0])); + memset(&p->data[i], 0, sizeof(p->data[0])); p->party.count--; party_check_state(p); break; @@ -563,7 +563,7 @@ int party_send_logout(struct map_session_data *sd) for(i=0;idata[i].sd != sd;i++); if (i < MAX_PARTY) - malloc_set(&p->data[i], 0, sizeof(p->data[0])); + memset(&p->data[i], 0, sizeof(p->data[0])); return 1; } -- cgit v1.2.3-60-g2f50