Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2006-01-16 22:34:52 +0300
committerErwin Coumans <blender@erwincoumans.com>2006-01-16 22:34:52 +0300
commit56489f48308d0a47f63122ad2de7e54af20e14aa (patch)
tree1a849d39101b796ea74906d4a554ef2d690af30d /source/gameengine/Converter
parent14cc1192a34869e09f1a790bee39af61e60c01a4 (diff)
fixed a runtime problem with stl container usage, as reported on bf-committers mailing list
Diffstat (limited to 'source/gameengine/Converter')
-rw-r--r--source/gameengine/Converter/BL_ActionActuator.cpp6
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;