fixed a runtime problem with stl container usage, as reported on bf-committers mailing list

This commit is contained in:
Erwin Coumans 2006-01-16 19:34:52 +00:00
parent 14cc1192a3
commit 56489f4830

@ -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;