From 36d19dfe04063f72238fe7a3f588743704d35714 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 8 Jul 2005 01:43:44 +0000 Subject: [PATCH] Fixed bug at15006 reported by EKS --- amxmodx/CTask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }