Fixed small bug where the behaviour of a CTask object would be undefined if a plugin delted the task when it executes

This commit is contained in:
Pavol Marko 2004-09-12 17:00:22 +00:00
parent 09d0ba039d
commit fed8228712

View File

@ -122,6 +122,9 @@ void CTaskMngr::CTask::executeIfRequired(float fCurrentTime, float fTimeLimit, f
executeForwards(m_iFunc, m_iId);
}
if (isFree())
return;
// set new exec time OR remove the task if needed
if (m_bLoop || (--m_iRepeat > 0))
{