diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-01-16 22:34:52 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-01-16 22:34:52 +0300 |
commit | 56489f48308d0a47f63122ad2de7e54af20e14aa (patch) | |
tree | 1a849d39101b796ea74906d4a554ef2d690af30d /source | |
parent | 14cc1192a34869e09f1a790bee39af61e60c01a4 (diff) |
fixed a runtime problem with stl container usage, as reported on bf-committers mailing list
Diffstat (limited to 'source')
-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; |