diff options
Diffstat (limited to 'source/gameengine/Converter')
-rw-r--r-- | source/gameengine/Converter/BL_ActionActuator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/gameengine/Converter/BL_ActionActuator.cpp b/source/gameengine/Converter/BL_ActionActuator.cpp index 113556f0b11..ee47f86157e 100644 --- a/source/gameengine/Converter/BL_ActionActuator.cpp +++ b/source/gameengine/Converter/BL_ActionActuator.cpp @@ -168,16 +168,16 @@ bool BL_ActionActuator::Update(double curtime, bool frame) // maybe there are events for us in the queue ! if (frame) { - for (vector<CValue*>::iterator i=m_events.end(); !(i==m_events.begin());) + for (vector<CValue*>::iterator i=m_events.begin(); !(i==m_events.end());i++) { - i--; if ((*i)->GetNumber() == 0.0f) bNegativeEvent = true; else bPositiveEvent= true; (*i)->Release(); - m_events.pop_back(); + } + m_events.clear(); if (bPositiveEvent) m_flag |= ACT_FLAG_ACTIVE; |