parent
64157090e6
commit
d0d0c4f197
|
@ -214,6 +214,7 @@ bool CBotProgram::Run(void* pUser, int timer)
|
||||||
m_error = m_stack->GetError(m_errorStart, m_errorEnd);
|
m_error = m_stack->GetError(m_errorStart, m_errorEnd);
|
||||||
m_stack->Delete();
|
m_stack->Delete();
|
||||||
m_stack = nullptr;
|
m_stack = nullptr;
|
||||||
|
CBotClass::FreeLock(this);
|
||||||
return true; // execution is finished!
|
return true; // execution is finished!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,6 +227,7 @@ void CBotProgram::Stop()
|
||||||
m_stack->Delete();
|
m_stack->Delete();
|
||||||
m_stack = nullptr;
|
m_stack = nullptr;
|
||||||
m_entryPoint = nullptr;
|
m_entryPoint = nullptr;
|
||||||
|
CBotClass::FreeLock(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue