From c3c5e31443c218fb7fbf42b2c48d158b01f37131 Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 9 Dec 2013 18:31:47 +0100 Subject: Fixed a crash when casting GN_SPORE_EXPLOSION on certain systems. - Follow-up to 44c33fda3614d588e6bf6cee1cf884e98f1531f0. - Also fixed some incorrect va_end calls that came up while debugging. - Special thanks to Ind for his help debugging the problem. Signed-off-by: Haru --- src/map/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index 874dca08c..5db2d8480 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -695,7 +695,7 @@ int map_vforeachinrange(int (*func)(struct block_list*, va_list), struct block_l va_copy(apcopy, ap); returnCount = bl_vforeach(func, blockcount, INT_MAX, apcopy); - va_end(ap); + va_end(apcopy); return returnCount; } -- cgit v1.2.3-70-g09d2