mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Drop error instead of throwing an exception to meet non-throwing exception specification
This commit is contained in:
parent
18e5c6e714
commit
884a76db4c
2 changed files with 4 additions and 2 deletions
|
@ -2286,7 +2286,8 @@ ScriptThread::~ScriptThread()
|
|||
assert(m_ScriptVM);
|
||||
if (!m_ScriptVM) {
|
||||
// should never happen
|
||||
throw ScriptException("Attempting to delete a dead thread.");
|
||||
//throw ScriptException("Attempting to delete a dead thread.");
|
||||
gi.Error(ERR_DROP, "Attempting to delete a dead thread.");
|
||||
}
|
||||
|
||||
vm = m_ScriptVM;
|
||||
|
|
|
@ -89,7 +89,8 @@ ScriptClass::ScriptClass()
|
|||
ScriptClass::~ScriptClass()
|
||||
{
|
||||
if (m_Script == NULL) {
|
||||
throw ScriptException("Attempting to delete dead class.");
|
||||
//throw ScriptException("Attempting to delete dead class.");
|
||||
gi.Error(ERR_DROP, "Attempting to delete a dead thread.");
|
||||
}
|
||||
|
||||
KillThreads();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue