Fixed bug at15006 reported by EKS

This commit is contained in:
David Anderson 2005-07-08 01:43:44 +00:00
parent 5d90ccf088
commit 36d19dfe04

View File

@ -131,7 +131,7 @@ void CTaskMngr::CTask::executeIfRequired(float fCurrentTime, float fTimeLimit, f
return;
// set new exec time OR remove the task if needed
if (m_bLoop || (--m_iRepeat > 0))
if (m_bLoop || (m_iRepeat-- > 0))
{
m_fNextExecTime += m_fBase;
}