summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-21 02:51:37 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-21 02:51:37 +0300
commite7ebc6c703cd31577bd78f7b133ba18c5dfab1a9 (patch)
treecac38b119279d8201d9026a359e3ea7f717628bb /src/localconsts.h
parent985a6b7f5374f3d7310f3d6cec95874f2f3d81b8 (diff)
downloadmv-e7ebc6c703cd31577bd78f7b133ba18c5dfab1a9.tar.gz
mv-e7ebc6c703cd31577bd78f7b133ba18c5dfab1a9.tar.bz2
mv-e7ebc6c703cd31577bd78f7b133ba18c5dfab1a9.tar.xz
mv-e7ebc6c703cd31577bd78f7b133ba18c5dfab1a9.zip
Fix possible crash in skill cooldowns.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index eee549789..6c52bf0e1 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -195,6 +195,9 @@
#define FOR_EACHP(type, iter, array) for (type iter = array->begin(), \
iter##_fend = array->end(); iter != iter##_fend; ++ iter)
+#define FOR_EACH_SAFE(type, iter, array) for (type iter = array.begin(); \
+ iter != array.end(); ++ iter)
+
#ifdef ENABLE_CHECKPLUGIN
#define A_NONNULLPOINTER __attribute__((nonnullpointer))
#else