From 1bb03e1549a9050049bc027566a448a530298b64 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Sat, 22 Nov 2008 23:54:34 +0000 Subject: * Hunted down improper uses of va_list variables. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13383 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/party.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/map/party.c') diff --git a/src/map/party.c b/src/map/party.c index a6f2c454f..46ddf2952 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -929,7 +929,6 @@ int party_sub_count(struct block_list *bl, va_list ap) int party_foreachsamemap(int (*func)(struct block_list*,va_list),struct map_session_data *sd,int range,...) { struct party_data *p; - va_list ap; int i; int x0,y0,x1,y1; struct block_list *list[MAX_PARTY]; @@ -946,8 +945,6 @@ int party_foreachsamemap(int (*func)(struct block_list*,va_list),struct map_sess x1=sd->bl.x+range; y1=sd->bl.y+range; - va_start(ap,range); - for(i=0;idata[i].sd; @@ -964,10 +961,14 @@ int party_foreachsamemap(int (*func)(struct block_list*,va_list),struct map_sess map_freeblock_lock(); for(i=0;i