From 1b73b82ea629ff1e69fc2d6094c27e9e32229a84 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 7 Nov 2006 16:17:01 +0000 Subject: - Fixed map_foreachiddb and map_foreachpc so they don't encapsulate the variable arguments into a double va_arg list. Thanks to the Ultra Mage for the tip. - Cleaned up the clif_hate/mob_info functions with the correct fields/usage as explained by Rayce. - Implemented clif_feel_hate_reset packet to properly display the Angel of the Sun/Moon/Stars, thanks again to Rayce for the relevant information. - LP will again block all land-stuff from being placed down on top of it for the exception of Song/Dance/Encores. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9162 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 9c9a5fc21..767402512 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -8652,10 +8652,9 @@ int buildin_emotion(struct script_state *st) static int buildin_maprespawnguildid_sub_pc(DBKey key, void *data, va_list ap) { - va_list ap2 = va_arg(ap, va_list); // double decode -_- - int m=va_arg(ap2,int); - int g_id=va_arg(ap2,int); - int flag=va_arg(ap2,int); + int m=va_arg(ap,int); + int g_id=va_arg(ap,int); + int flag=va_arg(ap,int); struct map_session_data *sd = (TBL_PC*)data; if(!sd || sd->bl.m != m) -- cgit v1.2.3-60-g2f50