mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed small bug where the behaviour of a CTask object would be undefined if a plugin delted the task when it executes
This commit is contained in:
parent
09d0ba039d
commit
fed8228712
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user