From 9e46d2da47b6f111dc0ee67b64205d016e41e0d5 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Mon, 25 Jul 2005 20:39:58 +0000 Subject: [PATCH] WOW. --- amxmodx/CTask.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/amxmodx/CTask.cpp b/amxmodx/CTask.cpp index ccdd48dd..cff4477e 100755 --- a/amxmodx/CTask.cpp +++ b/amxmodx/CTask.cpp @@ -45,6 +45,7 @@ CPluginMngr::CPlugin *CTaskMngr::CTask::getPlugin() const void CTaskMngr::CTask::set(CPluginMngr::CPlugin *pPlugin, int iFunc, int iFlags, int iId, float fBase, int iParamsLen, const cell *pParams, int iRepeat, float fCurrentTime) { + clear(); m_bFree = false; m_pPlugin = pPlugin; @@ -137,9 +138,7 @@ void CTaskMngr::CTask::executeIfRequired(float fCurrentTime, float fTimeLimit, f } else { - unregisterSPForward(m_iFunc); - m_iFunc = -1; - m_bFree = true; + clear(); } } }