summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-12-09 18:31:47 +0100
committerHaru <haru@dotalux.com>2013-12-09 18:45:34 +0100
commitc3c5e31443c218fb7fbf42b2c48d158b01f37131 (patch)
tree6e808a112286ef02e4ab7c9843b3f02ab42204d4 /src/map/map.c
parent3e90bda07068e8662a7fcaf8b1a4e82bbdf0fd4d (diff)
downloadhercules-c3c5e31443c218fb7fbf42b2c48d158b01f37131.tar.gz
hercules-c3c5e31443c218fb7fbf42b2c48d158b01f37131.tar.bz2
hercules-c3c5e31443c218fb7fbf42b2c48d158b01f37131.tar.xz
hercules-c3c5e31443c218fb7fbf42b2c48d158b01f37131.zip
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 <haru@dotalux.com>
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
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;
}