diff --git a/amxmodx/CTask.cpp b/amxmodx/CTask.cpp index afad6a0b..442dc86c 100755 --- a/amxmodx/CTask.cpp +++ b/amxmodx/CTask.cpp @@ -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; }