summaryrefslogtreecommitdiff
path: root/src/effectmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effectmanager.cpp')
-rw-r--r--src/effectmanager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp
index aea3fed3c..bdbcf051c 100644
--- a/src/effectmanager.cpp
+++ b/src/effectmanager.cpp
@@ -68,8 +68,7 @@ bool EffectManager::trigger(const int id, Being *const being,
return false;
bool rValue = false;
- for (std::vector<EffectDescription>::const_iterator i = mEffects.begin(),
- i_end = mEffects.end(); i != i_end; ++i)
+ FOR_EACH (std::vector<EffectDescription>::const_iterator, i, mEffects)
{
if ((*i).id == id)
{
@@ -95,8 +94,7 @@ bool EffectManager::trigger(const int id, const int x, const int y,
return false;
bool rValue = false;
- for (std::vector<EffectDescription>::const_iterator i = mEffects.begin(),
- i_end = mEffects.end(); i != i_end; ++i)
+ FOR_EACH (std::vector<EffectDescription>::const_iterator, i, mEffects)
{
if ((*i).id == id)
{