summaryrefslogtreecommitdiff
path: root/src/depricatedevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/depricatedevent.cpp')
-rw-r--r--src/depricatedevent.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/depricatedevent.cpp b/src/depricatedevent.cpp
index 8f0eadf82..d6a1f2935 100644
--- a/src/depricatedevent.cpp
+++ b/src/depricatedevent.cpp
@@ -117,7 +117,8 @@ void DepricatedEvent::trigger(Channels channel, const DepricatedEvent &event)
// Loop though all listeners
ListenerSet::const_iterator lit = it->second.begin();
- while (lit != it->second.end())
+ ListenerSet::const_iterator lit_end = it->second.end();
+ while (lit != lit_end)
{
if (*lit)
(*lit)->processEvent(channel, event);