diff --git a/amxmodx/CTask.cpp b/amxmodx/CTask.cpp index 20bff6e1..79abe7d4 100755 --- a/amxmodx/CTask.cpp +++ b/amxmodx/CTask.cpp @@ -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)) {